File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate clustering problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Hibernate clustering problem" Watch "Hibernate clustering problem" New topic
Author

Hibernate clustering problem

Adnan Badar
Greenhorn

Joined: Sep 16, 2004
Posts: 8
Hi,

We are trying to implement Session Clustering using Spring & Hibernate deployed on Oracle10gAS 10.1.2.0.2. There are two OC4J servers configured for session clustering. On fail over request is successfully going to another one. For simple plain JSP application HTTP session build on first machine is available on second oc4j machine.

But session clustering is not working fine with application built using Hibernate and Spring. If both nodes are available then things work fine, when one node goes down then request goes to another server but hibernate pojo object are not in Synch (may be), or due to whatever reason we are getting below stack trace:

Exception while executing action
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException:

Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):
[FishingLicense#35965]; nested exception is org.hibernate.StaleObjectStateException:

Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [FishingLicense#35965]
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [FishingLicense#35965]






Can any one provide me some hints regarding this issue?
[ May 13, 2007: Message edited by: Adnan Badar ]

Regards <br />Muhammad Adnan Badar
 
 
subject: Hibernate clustering problem
 
Threads others viewed
StaleObjectStateException
Row was updated or deleted by another transaction
Spring Hibernate Cluster problem
Exception when updating an entitiy outside a transaction
Hibernate @Version field error.
IntelliJ Java IDE