title: Spring-Batch second step not working properly
body: <p>I am configuring a job with two step, Both step need to read different file and dump the data to database. When I am launching the job it executed the first step and save the data successfully and second step is not reading the file. But in database I can see that both Step Status is successful. My Configuration is looks like:</p>
  
  <pre><code>job id="job1" job-repository="jobRepository" xmlns="http://www.springframework.org/schema/batch" restartable="true"&gt;
      &lt;step id="step1"&gt;
          &lt;tasklet transaction-manager="transactionManager" task-executor="taskExecutor"&gt;
              &lt;chunk reader="DomainItemReader" writer="DomainItemWriter" commit-interval="40" skip-limit="10"&gt;
                  &lt;skippable-exception-classes&gt;
                      &lt;include class="java.lang.Exception"/&gt;
                      &lt;exclude class="java.io.FileNotFoundException"/&gt;
                  &lt;/skippable-exception-classes&gt;
                  &lt;listeners&gt;
                      &lt;listener ref="MyListener"/&gt;
                  &lt;/listeners&gt;
              &lt;/chunk&gt;
          &lt;/tasklet&gt;
          &lt;next on="COMPLETED" to="step2"/&gt;
      &lt;/step&gt;
      &lt;step id="step2" &gt;
          &lt;tasklet transaction-manager="transactionManager" task-executor="taskExecutor" allow-start-if-complete="true"&gt;
              &lt;chunk reader="DomainItemReader2" writer="DomainItemWriter2" commit-interval="100" skip-limit="10"&gt;
                  &lt;skippable-exception-classes&gt;
                      &lt;include class="java.lang.Exception"/&gt;
                      &lt;exclude class="java.io.FileNotFoundException"/&gt;
                  &lt;/skippable-exception-classes&gt;
                  &lt;listeners&gt;
                      &lt;listener ref="MyListener2"/&gt;
                  &lt;/listeners&gt;
              &lt;/chunk&gt;
          &lt;/tasklet&gt;
      &lt;/step&gt;
  &lt;/job&gt; 
  </code></pre>
  
  <p>And my reader is looks like :</p>
  
  <pre><code>&lt;bean id="billDomainItemReader" class="org.springframework.batch.item.file.FlatFileItemReader"&gt;
      &lt;property name="resource" value="file:./firstfile.txt" /&gt;
      &lt;property name="linesToSkip" value="1" /&gt;
      &lt;property name="lineMapper"&gt;
          &lt;bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper"&gt;
              &lt;property name="lineTokenizer"&gt;
                  &lt;bean class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer"&gt;
                          &lt;property name="delimiter"&gt;
                          &lt;util:constant static-field="org.springframework.batch.item.file.transform.DelimitedLineTokenizer.DELIMITER_TAB"/&gt;
                      &lt;/property&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
              &lt;property name="fieldSetMapper"&gt;
                  &lt;bean class="com.abc.DomainMapper"&gt;
                      &lt;property name="accessJobParam" ref="accessJobParam"/&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And my second step's reader is looks like :</p>
  
  <pre><code>&lt;bean id="DomainItemReader2" class="org.springframework.batch.item.file.FlatFileItemReader" scope="step"&gt;
      &lt;property name="resource" value="file:./secondFile.txt" /&gt;
      &lt;property name="linesToSkip" value="1" /&gt;
      &lt;property name="lineMapper"&gt;
          &lt;bean class="org.springframework.batch.item.file.mapping.DefaultLineMapper"&gt;
              &lt;property name="lineTokenizer"&gt;
                  &lt;bean class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer"&gt;
                      &lt;!-- &lt;property name="names" value="PRODUCT_ID,NAME,DESCRIPTION,PRICE" /&gt;--&gt;
                      &lt;property name="delimiter"&gt;
                          &lt;util:constant static-field="org.springframework.batch.item.file.transform.DelimitedLineTokenizer.DELIMITER_TAB"/&gt;
                      &lt;/property&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
              &lt;property name="fieldSetMapper"&gt;
                  &lt;bean class="com.abc.DomainMapper2"&gt;
                      &lt;property name="accessJobParam" ref="accessJobParam"/&gt;
                  &lt;/bean&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Can any body please tell me where I am doing wrong and why it is not processing my second step file. 
  Thanks</p>