-
Nov 7th, 2011, 06:22 AM
#1
UncategorizedSQLException with SQL Partitioning - Parallel Processing
Hi,
I run a job with SQL Partitioning. I encountered the following error during execution:
org.springframework.jdbc.UncategorizedSQLException : Executing query; uncategorized SQLException for SQL [SELECT PLAYER_ID, FIRST_NAME, LAST_NAME, POSITION, DEBUT_YEAR, FINAL_YEAR,CAREER_LENGTH from PLAYER where PLAYER_ID >= #{stepExecutionContext['minValue']} and PLAYER_ID <= #{stepExecutionContext['maxValue']} ]; SQL state [null]; error code [17034]; Token SQL92 non pris en charge à l'emplacement: 142: stepExecutionContext; nested exception is java.sql.SQLException: Token SQL92 non pris en charge à l'emplacement: 142: stepExecutionContext
In the xml Spring batch job configuration file the query is declared like:
<beans:bean name="playerDBReader" id="playerDBReader" class="org.springframework.batch.item.database.Jdb cCursorItemReader" scope="step" >
<beans
roperty name="dataSource" ref="CLEDS" />
<beans
roperty name="sql" >
<beans:value><![CDATA[SELECT PLAYER_ID, FIRST_NAME, LAST_NAME, POSITION, DEBUT_YEAR, FINAL_YEAR,CAREER_LENGTH from PLAYER where PLAYER_ID >= #{stepExecutionContext['minValue']} and PLAYER_ID <= #{stepExecutionContext['maxValue']} ]]></beans:value>
</beans
roperty>
Have an idea to fix this error ?
Thanks a lot.
-
Nov 10th, 2011, 05:52 PM
#2
please take a look into a similar problem here in the forum: Dynamic SQL in JdbcCursorItemReader
-
Sep 24th, 2012, 10:55 AM
#3
try increasing the db thread pool size
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules