-
Apr 26th, 2008, 07:34 AM
#1
about DrivingQueryItemReader's question
When I used DrivingQueryItemReader, I setted saveState propertie is true, When DrivingQueryItemReader call update(ExecutionContext executionContext) method, call getCurrentKey();
protected Object getCurrentKey() {
if (initialized) {
return keys.get(currentIndex - 1);
}
return null;
}
now it throw java.lang.ArrayIndexOutOfBoundsException: -1 exception.
I debug it, I find that Step first call update(ExecutionContext executionContext), then call read(), the currentIndex properties is 0, the following code:
return keys.get(currentIndex - 1);
is that:
return keys.get(0 - 1);
so, throwing exceptions.
Other persons occur this question?
-
Apr 26th, 2008, 07:47 AM
#2
http://jira.springframework.org/browse/BATCH-593.
(Please use [code][/code] tags to post code and stack traces.)
-
Apr 27th, 2008, 08:30 PM
#3
I know.Thank you very much!
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