-->
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: "but I _do_ have a Session..."
PostPosted: Fri Mar 18, 2005 9:58 pm 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
[Hibernate 2.1]

The log messages show a session being opened... and then:

17:20:04,368 DEBUG SessionImpl:531 - opened session
17:20:04,370 DEBUG JDBCTransaction:37 - begin
17:20:04,373 DEBUG JDBCTransaction:41 - current autocommit status:false
com.wrinkledog.phydeaux.model.Publication@1
17:20:04,380 ERROR LazyInitializationException:25 - Failed to lazily initialize a collection - no session or session was closed
net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection - no session or session was closed
at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:214)
at net.sf.hibernate.collection.PersistentCollection.write(PersistentCollection.java:84)
at net.sf.hibernate.collection.Set.add(Set.java:154)
at com.wrinkledog.phydeaux.model.Publication.unsubscribe(Publication.java:180)
.
.
.

What could cause Hibernate to say there's no session, right after it's opened the session?

thx a lot for any suggestions,
—mark


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 12:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Not enough information to help you. Code sample etc..


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.