users@glassfish.java.net

Re: StackOverflowError while Persisting Data

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Feb 2008 11:10:44 PST

Based on the stack trace TopLink is stuck processing from a XtoMany mapping to a XtoOne mapping and back to the same XtoMany mapping. The only way this could happen is if TopLink was getting a new instance of an object everytime it accessed a related object.

Have you tried reducing the example to a single set of mappings that reproduce the problem? You could also debug the loop to see what instances of objects are being checked in this code.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

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