title: Spring batch Writer, Processor called twice on skip?
body: <p>I have a very basic question regarding skip. i am using the spring-batch-simple-cli project provided by spring samples, and trying to understand the skip behaviour. this has a very basic example reader that reads from an array of strings ( i have modifed it to read from a list of 10 strings starting from Hellowworld 1 to Hellowworld 10) and a basic writer that logs to console. writer throws java.lang.Exception on each write.
  i have added a skip limit of 4 to job configuration. once it reached Hellowworld 5, the job stops as expected.
  But whenever writer throws exception, the writer is called back immediately with the same item. My question why is writer called twice? i am expecting this item to be just skipped? is there something i am missing.</p>
  
  <pre><code>&lt;job id="job1" xmlns="http://www.springframework.org/schema/batch" incrementer="jobParametersIncrementer"&gt;
      &lt;step id="step1" parent="simpleStep"&gt;
          &lt;tasklet&gt;
              &lt;chunk reader="reader" writer="writer" skip-limit="4" &gt;
                  &lt;skippable-exception-classes&gt;
                      &lt;include class="java.lang.Exception" /&gt;
                  &lt;/skippable-exception-classes&gt;
              &lt;/chunk&gt;
          &lt;/tasklet&gt;
      &lt;/step&gt;
  &lt;/job&gt;
  </code></pre>