users@glassfish.java.net

Re: Glassfish + TopLink Lazy Loading

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Dec 2007 08:56:03 PST

The strange thing is that I do It.
And the exception is obtained when .size() method is called.

My source code:

          Categories cat = categorieFacade.find(categoryId);
          
          Collection<Contents> contents = cat.getContentsCollection();
          contents.size();

When I debug the source code before
contents.size()

the contents variable tooltip tell me:
contents = (oracle.toplink.essentials.indirection.IndirectList) { IndirectList: not instantiated}
[Message sent by forum member 'peppeme' (peppeme)]

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