On Thu, Sep 17, 2009 at 2:34 PM, C N Davies <[email protected]> wrote:

> I can confirm that the issue is that the _broker is returning null when I
> receive this error, isPersistent never get called as a result. I haven't
> yet
> worked out what in he broker is causing it to return null. My entity
> manager
> is never being closed during the session


Hmm, that's odd.


> as I am only testing as a single
> user as I am keeping the entity manager open for each session since
> creating
> a new entity manager is expensive,


no, no, it's...

well at least when using the subclassing
> enhancer.
>

Oh, right, I don't have any experience with that. As I stated in another
thread I create an em with every web request (on a single em factory) with
no ill effects (with build-time enhancement).


> Thanks to your sample I was able to get the build time enhancement working,
> finally! Thank you!


Great!


>  I'm now trying to replicate the issue again to try to
> see what's going on.


Hmm, so you are at a point where failure is still intermittent? Are you
running a unit test or through the user interface?


> till it throws the exception again in SingleFieldManager.  Still doesn't
> make sense to me why the same process and data is throwing different
> exceptions though.
>

I agree that different exceptions is odd, but I wonder if the cause is the
same (failure of _broker to return the proper result).

I'm out of avenues to explore right now. Let me know if there's anything you
want me to try. I'm willing to put in extra hours to figure this out. I've
posed a question to the dev list but haven't gotten an answer.

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

Reply via email to