-->
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: Prevent that a hibernate exception is logged in the server
PostPosted: Wed Apr 30, 2014 7:33 pm 
Newbie

Joined: Wed Apr 30, 2014 7:06 pm
Posts: 1
Hello my friends,


I have a problem and I need some help for it, so I have a java web program that using hibernate, so sometimes occurry a cononcorrency problem, when a transaction
trying insert a object but other transaction insert the same object, this error is logged in my server:

org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

Its ok, because I manage this error using a try/catch in my java code, so I would like that this error was not logged in the server, I tried to use log4j to log
this exception in other file, but its not working.. so anybody have any idea to fix it? Sorry for my english I am learning it...


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.