-----Original Message----- From: Daryl Stultz [mailto:[email protected]] Sent: Friday, 18 September 2009 2:45 AM To: [email protected] Subject: Re: SingleFieldManager crash
On Thu, Sep 17, 2009 at 2:34 PM, C N Davies <[email protected]> wrote: >> 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. Yes it is so that is why I can't see that it could be detached. >> creating >> a new entity manager is expensive, >no, no, it's... >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). Probably a better way to, the runtime enhancer goes through and subclasses all my classes when I instantiate it so opening and closing is horribly expensive. >Hmm, so you are at a point where failure is still intermittent? Are you >running a unit test or through the user interface? Yes it is intermittent but pretty regular, but two different exceptions as I mentioned and he SingleFieldManager based one is like 1 in 100 times, while the rest are the coming from the AttachStrategy. I'm running it in the UI since it's about 3 steps to reproduce. >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. I added some logging to the broker to see if I can catch the cause of the SingleFieldManagerreturning null, I just have to wait until It rears it's ugly head again then hopefully I will have enough info to pip-point it. Chris
