users@glassfish.java.net

Re: Infinite XML Loop

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Oct 2007 16:18:58 PDT

I am also getting the same error - A cycle is detected in the object graph. This will cause infinitely deep XML whenever there is a circular reference.

I followed Sahoo's advice by making object reference to null. Now I am getting an exception - Cannot update the record.

Looks like when i am making the object reference null it is synchronizing the inmemory object with database and hence it is updating the database and kicks out with exception - cannot update - value cannot be null.

How can i prevent it from updating the database or rather stop synchronizing the inmemory object with datasbe for this.
[Message sent by forum member 'ad1900' (ad1900)]

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