Re: Unable to release locks held by deallocated EOEditingContext
Re: Unable to release locks held by deallocated EOEditingContext
- Subject: Re: Unable to release locks held by deallocated EOEditingContext
- From: Art Isbell <email@hidden>
- Date: Fri, 25 Jul 2008 16:59:22 -1000
On Jul 25, 2008, at 4:41 PM, Joe Moreno wrote:
I'm not quite sure what is causing these exceptions which I cannot
consistently reproduce.
[2008-07-22 14:47:10 PDT] <Finalizer> Unable to release locks held
by a deallocated EOEditingContext.
[2008-07-22 14:47:10 PDT] <Finalizer>
java.lang.IllegalStateException: Illegal Lock usage: unlocking
thread not owner.
The Finalizer thread is trying to unlock an EOEditingContext that a
different thread locked which is not allowed. So your code is not
unlocking an EOEditingContext that it locked. Look for unbalanced
lock()/unlock() pairs.
If you're attempting to manage EOEditingContext locking manually, you
might want to consider using MultiECLockManager (source available by
searching Google) to manage EOEditingContext locking for you
automatically and flawlessly.
Aloha,
Art
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden