-->
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.  [ 2 posts ] 
Author Message
 Post subject: StaleObjectStateException with hibernate
PostPosted: Tue Jun 29, 2004 4:38 pm 
Beginner
Beginner

Joined: Wed Mar 17, 2004 12:44 am
Posts: 25
Hello,

I am getting StaleObjectStateException with my hibernate application. Going through the documentation I came to know that I have to specify appropriate unsaved-value for the objects that are transient in memory. How can I decide which method of using unsaved-value is best ? Is any good documentation available for this ?

Regards,


Nitin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 23, 2004 10:26 am 
Beginner
Beginner

Joined: Wed Mar 17, 2004 12:44 am
Posts: 25
The problem is with Struts 1.1. If we submit the page twice 2 requests are sent to the server resulting in two different hibernate sessions and their respective transactions. The object state was getting lost hence this exception. One can use Deja-Vu token pattern to get rid of this problem. Struts has inbuilt support for this.

I found the problem long back and didn't post it here I apologize for that.

Regards,

Nitin Dubey


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

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.