Yes because if you look at BrokerImpl you can see it checks:

1)      Is it manageable 
        a) Persistence capable
        b) not null
                if a and b are true then is it a registered class

Next it gets the persistence context. This is where I have a suspicion the
issue is occurring

2)      Is it persistence capable


-----Original Message-----
From: Daryl Stultz [mailto:[email protected]] 
Sent: Friday, 18 September 2009 10:27 PM
To: [email protected]
Subject: Re: SingleFieldManager crash

On Fri, Sep 18, 2009 at 10:16 AM, C N Davies <[email protected]> wrote:

> I found that my issue relates to the fact that my entity is detached
> because
> my factory was being replaced by some of my buggy code. When it gets into
> the broker to assign to sm the wheels are falling off there.
>

Do you agree with me that it's proper for sm to be null if the object is
detached? Can you tell me the values of _broker.isDetachedNew() and
_broker.isDetached(obj) when the failure occurs?

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

Reply via email to