• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unable to release locks held by a deallocated EOEditingContext.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to release locks held by a deallocated EOEditingContext.


  • Subject: Re: Unable to release locks held by a deallocated EOEditingContext.
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 28 Sep 2006 20:35:34 -0700

What that means is that finalize was called on an editing context in the Finalizer thread of the JVM, but another thread has the EC locked. That other thread is usually a WOWorkerThread. What that means is that, while processing a request, the worker thread locked the ec but did not lock it. And usually :-) that means that you are missing a try...finally block to unlock the EC.

How top track it down?  Trust in the Wiki, Luke er Owen.

http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Context_and_Database_Locking

See LockErrorScreamerEditingContext.


Chuck

On Sep 28, 2006, at 4:44 PM, Owen McKerrow wrote:

Hi All,

Was browsing over my logs from the latest build on our test server and noticed this error repeated over and over again :

2006,09.28 13:06:33,970 DEBUG [Finalizer] (Log.NSLogErr:1546 appendln) - Unable to release locks held by a deallocated EOEditingContext.
2006,09.28 13:06:33,971 DEBUG [Finalizer] (Log.NSLogDebug:1546 appendln) - java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner.
at com.webobjects.foundation.NSRecursiveLock.unlock (NSRecursiveLock.java:207)
at com.webobjects.eocontrol.EOEditingContext.unlock (EOEditingContext.java:4720)
at com.webobjects.eocontrol.EOEditingContext._dispose (EOEditingContext.java:1158)
at com.webobjects.eocontrol.EOEditingContext.finalize (EOEditingContext.java:1178)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


Any ideas on how to track down where this one is coming from ?

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks."
- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
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


References: 
 >Unable to release locks held by a deallocated EOEditingContext. (From: Owen McKerrow <email@hidden>)

  • Prev by Date: Unable to release locks held by a deallocated EOEditingContext.
  • Next by Date: 2 form each with one WOFileUpload seems doesn't work
  • Previous by thread: Unable to release locks held by a deallocated EOEditingContext.
  • Next by thread: 2 form each with one WOFileUpload seems doesn't work
  • Index(es):
    • Date
    • Thread