This content has been marked as final.
Show 3 replies
-
1. Re: LazyInitializationException while passing audited object to client
hernanbolido Sep 15, 2010 8:27 AM (in response to vipavel)Hello,
All relations are lazy in envers, so you need the hibernate session available when you access an object property.
Regards. Hernán.
-
2. Re: LazyInitializationException while passing audited object to client
adamw Sep 20, 2010 9:50 AM (in response to hernanbolido)Yes, either that, or pre-access any associations that you'll need (once access they are loaded and subsequent gets don't require the session to be open).
Adam
-
3. Re: LazyInitializationException while passing audited object to client
vipavel Dec 21, 2010 4:59 AM (in response to vipavel)Hi!
I've figured out the cause of this problem.
BlazeDS tries to serialize objects on the client and server sides. As I can see, envers returns different type of object that is not compatible. The solution in our case was creating the "original" object from the returned one.
Pavel