On Wed, Sep 16, 2009 at 2:20 PM, C N Davies <[email protected]> wrote:
> Hi Daryl, > > I get the same error as you can see from my stack trace below: ... > FailedObject: com.trm.core.suppl...@3002b9 > My error occurs when I create new Entity and populate some of the fields > with other entities, each of the fields are set to cascade type of REFRESH. > > My case isn't quite the same as yours: it looks like your FailedObject is new (there is no ID after the Hash), I'm not using CascadeType.REFRESH, and my case is not at all repeatable. It may happen one in a thousand times. If yours is repeatable, perhaps you could debug the code and tell me if it fails because sm is null or !sm.isPersistent(). If your failed object is indeed new I'm guessing it fails on sm == null. If you use CascadeType.PERSIST does it go away? Thanks. -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:[email protected]
