Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch - filetodatabase - db2 database - Non-atomic batch failure error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Batch - filetodatabase - db2 database - Non-atomic batch failure error

    Hello All,

    I am a new user of Spring Batch. Trying to create a simple application which reads from a file and writes to a database table.

    A batch of prepared statements (insert into queries) are getting created. But then I am getting the error:

    com.ibm.db2.jcc.b.ie: Non-atomic batch failure. The batch was submitted, but at least one exception occurred on an individual member of the batch. Use getNextException() to retrieve the exceptions for specific batched elements.

    1) Why am I getting this error? What could be the cause of this error?
    2) How to use getNextException inside Spring Batch?

    My database connections are fine, as I am using tables in the same database as Job Repository and they are working fine!!

    Looking forward for any helpful advice.

    Thanks and Regards,
    Nik
Working...
X