title: How to read data from Oracle Db using JdbcCursorItemReader with Multi threading
body: <p>I had spring batch application and configured step like this:</p>
  
  <pre><code>ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
  taskExecutor.setCorePoolSize(4);
  taskExecutor.setMaxPoolSize(10);
  taskExecutor.afterPropertiesSet();
  return this.stepBuilderFactory.get("step1")
              .&lt;Mymodel, Mymodel&gt;chunk(2500)              
              .reader(reader())
              .writer(writer())
              .taskExecutor(taskExecutor)
              .build();
  </code></pre>
  
  <p>And reader like this:</p>
  
  <pre><code>@Bean
  public JdbcCursorItemReader&lt;Mymodel&gt; reader() {
      JdbcCursorItemReader&lt;Mymodel&gt; reader = new JdbcCursorItemReader&lt;Mymodel&gt;();
      reader.setDataSource(dataSource);
      reader.setSql("select * from User");
      reader.setRowMapper(new BeanPropertyRowMapper&lt;&gt;(Mymodel.class));
      reader.setVerifyCursorPosition(false);
      return reader;
  }
  </code></pre>
  
  <p>When I execute application , getting this error:</p>
  
  <blockquote>
    <p>org.springframework.jdbc.UncategorizedSQLException: Attempt to process next 
    row failed; uncategorized SQLException for SQL [select * from User]; SQL 
    state [99999]; error code [17289]; Result set after last row; nested 
    exception is java.sql.SQLException: Result set after last row</p>
  </blockquote>
  
  <p>Can you please help me to solve this.</p>