Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004211 [Resin] minor always 09-10-10 10:32 01-18-11 10:12
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004211: hessian/hibernate deserialization
Description (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)
Additional Information
Attached Files

- Relationships

- Notes
(0004952)
ferg
01-18-11 10:12

server/0b21
 

- Issue History
Date Modified Username Field Change
09-10-10 10:32 ferg New Issue
01-18-11 10:12 ferg Note Added: 0004952
01-18-11 10:12 ferg Assigned To  => ferg
01-18-11 10:12 ferg Status new => closed
01-18-11 10:12 ferg Resolution open => fixed
01-18-11 10:12 ferg Fixed in Version  => 4.0.15


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker