Mantis - Resin
Viewing Issue Advanced Details
4211 minor always 09-10-10 10:32 01-18-11 10:12
ferg  
ferg  
normal  
closed  
fixed  
none    
none 4.0.15  
0004211: hessian/hibernate deserialization
(rep by Matthew Schmidt)

Hey guys. Our project that's using Spring and Hibernate seems to have an issue with Spring Security and the remember me logins. Lazy loading collections has always been a problem with Hessian, but I'm not sure how to fix it here:

ERROR - failed to lazily initialize a collection of role: com.qato.models.user.User.containers, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.qato.models.user.User.containers, no session or session was closed
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:375)
at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122)
at org.hibernate.collection.PersistentSet.size(PersistentSet.java:162)
at com.caucho.hessian.io.CollectionSerializer.writeObject(CollectionSerializer.java:96)
at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:421)
at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer.serialize(UnsafeSerializer.java:293)
at com.caucho.hessian.io.UnsafeSerializer.writeInstance(UnsafeSerializer.java:212)
at com.caucho.hessian.io.UnsafeSerializer.writeObject(UnsafeSerializer.java:171)
at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:421)
at com.caucho.hessian.io.UnsafeSerializer$ObjectFieldSerializer.serialize(UnsafeSerializer.java:293)
at com.caucho.hessian.io.UnsafeSerializer.writeInstance(UnsafeSerializer.java:212)
at com.caucho.hessian.io.UnsafeSerializer.writeObject(UnsafeSerializer.java:171)
at com.caucho.hessian.io.Hessian2Output.writeObject(Hessian2Output.java:421)

Notes
(0004952)
ferg   
01-18-11 10:12   
server/0b21