users@glassfish.java.net

Re: Glassfish + TopLink Lazy Loading

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Dec 2007 08:04:22 PST

I try it,
But obtain the follow exception:

Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.

I init the collection by
collectionVar = new ArrayList<Var>();
in the constructor
[Message sent by forum member 'peppeme' (peppeme)]

http://forums.java.net/jive/thread.jspa?messageID=249943