Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    2

    Unanswered: non-atomic batch failure

    I am using DB2 9.x version and , hibernate as ORM and maven as build tool. I am using a maven plugin to create schema.
    I am getting the following error when trying to create schema

    Caused by: com.ibm.db2.jcc.c.lh: [ibm][db2][jcc][102][10040] 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.
    at com.ibm.db2.jcc.c.j.a(j.java:411)
    at com.ibm.db2.jcc.c.fg.a(fg.java:2081)

    does anybody have idea ?
    I searched google, but only found that "transaction logs is full" is the problem. But my database doesn't complain about transaction log.

    Please suggest.

    Thanks
    Avinash

  2. #2
    Join Date
    Dec 2009
    Posts
    2
    > Use getNextException() to retrieve the exceptions for specific batched elements.

    this line took me to the exact problem.
    I had to change the catch block a bit to log the next exception and retrieve the exact exception.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •