-->
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: Concurrency problem with Derby/Jetty.
PostPosted: Mon Mar 05, 2007 5:08 pm 
Newbie

Joined: Mon Mar 05, 2007 4:58 pm
Posts: 4
Code:
org.hibernate.HibernateException: Unable to locate row for retrieval of generated properties


On occasion we'll get this exception. This is thrown to indicate that a row in the database that was recently inserted was not actually inserted (used to retrieve generated properties). The cause of this problem is the Connection does not return the correct value for getGeneratedKeys(). This is most likely caused because the Connection is being shared and therefore the value held by the database is either lost or overwritten by the concurrent user of the Connection. We never get this error when using Tomcat (DBCP) but when we use Jetty we'll get this every once in a while. We're using the same connection pooling as Tomcat. Has anyone else encountered this problem?


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.