If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > non-atomic batch failure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-09, 01:01
avinthm avinthm is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 12-22-09, 05:11
avinthm avinthm is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On