-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Tracking down exact keys in batch updated failed Exception?
PostPosted: Mon Sep 11, 2006 4:19 pm 
Newbie

Joined: Mon Sep 11, 2006 3:38 pm
Posts: 9
So I've got a:
Code:
SEVERE: Could not execute JDBC batch update
Batch entry 15 update XX_VEHICLE_EVENT set CSO_ID= was aborted.
net.sf.hibernate.JDBCException: Could not execute JDBC batch update


And with show_sql I see:
Code:
Hibernate: update XX_VEHICLE_EVENT set CSO_ID=?, EVENT_NAME=?, EVENT_TYPE=?, ODOMETER=?, FUEL=?, LOAD_GROUP=? where VEHICLE_EVENT_ID=?


But how can I learn what data was in slot 15? Which primary key was involved?

I've tried looping to get details, but all I get is:
Code:
Looping to print all chained exceptions:
SQL State=23505 Hash=26342940 Exception=org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint "no_duplicate_events"


I know the SQL cause, just not which particular data triggered it.

_________________
http://www.citycarshare.org/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.