Spring Package - Exception Not Allowed

This is my code:

<chunk reader="READER" writer="WRITER"
    commit-interval="1000" skip-limit="1000">
    <skippable-exception-classes>
        <include class="java.lang.Exception"/>
    </skippable-exception-classes>
</chunk>

Stacktrace Magazine:

org.springframework.batch.retry.ExhaustedRetryException: Retry exhausted after last attempt in recovery path, but exception is not skippable.; nested exception is org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [ MERGE INTO FHD_GTGT_GEN_TXN_X TXN USING (

I want to understand what “exception cannot be missed” and how can I make this piece of code work? This step does not currently complete the quest.

Spring Package: spring -batch-2.1.xsd

+4
source share
1 answer

Exception - SQL exception - SQLException:

org.springframework.jdbc.UncategorizedSQLException 

Java.lang. , SQL , . - , , , , , . , , .

<chunk reader="READER" writer="WRITER"
 commit-interval="1000" skip-limit="1000">
  <skippable-exception-classes>
     <include class="java.lang.Exception"/>
     <include class="java.sql.SQLException"/>
  </skippable-exception-classes>
</chunk> 
+1

Source: https://habr.com/ru/post/1530989/


All Articles