-->
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: What caused "collection was evicted"
PostPosted: Mon Dec 27, 2004 1:37 am 
Beginner
Beginner

Joined: Sat Jan 31, 2004 10:09 am
Posts: 26
What I want to know is what may cuase the exception of "collection was evicted". Thank you very much.


Hibernate version: 2.1.7

Full stack trace of any exception that occurs:
net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3293)
net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195)
net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:71)
net.sf.hibernate.collection.List.iterator(List.java:103)
...(code not in Hibernate)


Name and version of the database you are using: MySQL 4.0.20a


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 7:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that you have called session.evict(collection);

..or have closed the session that you used to load the session with.

_________________
Max
Don't forget to rate


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.