If you got error like below.
1 |
java.lang.IllegalStateException: If a skip limit is provided then skippable exceptions must also be specified |
What should do with is in a message.
If you specify skip-limit in chunk, you also need to specify which exception you want skip.
Below example would be skip when exception has occurred. And skipped only exception which extends java.lang.Exception.
1 2 3 4 5 |
<b:chunk reader="monthlyListReader" processor="monthlyProcessor" writer="monthlyWriter" commit-interval="1" skip-limit="3"> <b:skippable-exception-classes> <b:include class="java.lang.Exception"/> </b:skippable-exception-classes> </b:chunk> |
keep spirit