-->
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: SharedCollection Exception only once
PostPosted: Thu Dec 20, 2007 5:48 pm 
Newbie

Joined: Wed Dec 19, 2007 3:30 pm
Posts: 1
Getting weird behaviour with hibernate Collections. Getting exception "Found Shared references" only once in the lifecyle of the server(Jboss 4.x), when application tries first time to save a obj which has a collection(it is not mapped to any other class, so there is no circular and multiple references.). After first time, application works fine throughout the server lifecycle.

I did googling and got some idea to create new instance of collection reset it, but now getting some other exception : collection was processed twice by flush()


Exceptions :

Caused by: org.hibernate.AssertionFailure: collection was processed twice by flush()


at java.lang.Thread.run(Thread.java:595)
Caused by: org.hibernate.HibernateException: Found shared references to a collection:


Hibernate version : 3.1.3
Jboss : 4.x
JDK : 1.5


I am stuck here and any help would be highly appreciated.


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.