Re: [Resin-interest] Resin 4: hibernate objects in HTTP session causing org.hibernate.LazyInitializationException

2011-03-28 Thread Keith Fetterman
Hi Mattias, Thanks for the help. That did it. It is unfortunate that Hessian serialization does this because a lot Web development is based on hibernate. We'd have to create non-hibernate clones of our persistent objects for storing in the session. Keith On 03/28/2011 02:30 AM, Mattias Jide

Re: [Resin-interest] Resin 4: hibernate objects in HTTP session causing org.hibernate.LazyInitializationException

2011-03-28 Thread Mattias Jiderhamn
By default Resin 4 uses Hessian for serialization of session data. Hessian tries to traverse uninitialized Hibernate associations by reflection, causing LazyInitializationException when serializing. For that reason, we are using Java serialization instead of Hessian for session data. Here is ho

[Resin-interest] Resin 4: hibernate objects in HTTP session causing org.hibernate.LazyInitializationException

2011-03-25 Thread Keith Fetterman
We have a custom Authenticator that extends resin's com.caucho.server.security.AbstractAuthenticator. In our custom authenticator, I am storing a Hibernate object that contains a HashSet of other Hibernate objects in my HTTP session. When I restart Resin (Resin 4.0.16), I am getting the follo