persistence@glassfish.java.net

java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST.

From: Jon Miller <jemiller_at_uchicago.edu>
Date: Wed, 10 Jan 2007 18:13:24 -0600

Hi all,

I'm running into the following exception. I'm wondering if anyone has
suggestions on how to find the offending object? I'm thinking it might be
nice if the error message did something like print the toString()
representation of the offending object.

Caused by: javax.faces.el.EvaluationException:
javax.persistence.RollbackException: java.lang.IllegalStateException: During
synchronization a new object was found through a relationship that was not
marked cascade PERSIST.

Jon