Announcement Announcement Module
Collapse
No announcement yet.
about DrivingQueryItemReader's question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    http://jira.springframework.org/browse/BATCH-593.

    (Please use [code][/code] tags to post code and stack traces.)

    Comment


    • #3
      I know.Thank you very much!

      Comment

      Working...
      X