Previously, we were using Spring Batch 3.0.6 and tried to update it to 4.1.1. I have a job with only an ItemReader
and an ItemProcessor
- no ItermWriter
provided. It was working fine before update.
Now, I am getting:
java.lang.IllegalStateException: ItemWriter must be provided.
What is changed from previous version?
<job id="myJob" parent="baseJob">
<step id="myStep" parent="baseStep">
<tasklet>
<chunk reader="myItemReader" processor="myProcessor"
commit-interval="1" skip-limit="100000" retry-limit="1">
<skippable-exception-classes>
<include class="ExceptionClass"/>
</skippable-exception-classes>
<retryable-exception-classes>
<include class="ExceptionClass"/>
</retryable-exception-classes>
</chunk>
</tasklet>
<listeners merge="true">
<listener ref="promotionListener"/>
<listener ref="skippableExceptionListener"/>
</listeners>
</step>
</job>