Announcement Announcement Module
Collapse
No announcement yet.
skipping based on message of exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • skipping based on message of exception

    Hi

    I was wondering what the best way to handle skips of a certain exception based on the cause/message?

    I am using StaxEventItemReader and there are known character set issues with the provided xml, so I get a "Invalid byte 2 of 3-byte UTF-8 sequence" thrown by the xerces XMLStreamReaderImpl, but this get propergated up to org.springframework.dao.DataAccessResourceFailureE xception, and I dont want to skip all instances of that exception, only ones containing the "invalid byte" message.

    Thanks

  • #2
    You need to implement the SkipPolicy and add it to your step.

    Comment


    • #3
      thanks for the reply. that was indeed what I ended up doing after looking through the batch packages.

      Comment

      Working...
      X