[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
|