• 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: Illegal Lock usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illegal Lock usage


  • Subject: Re: Illegal Lock usage
  • From: Guido Neitzer <email@hidden>
  • Date: Tue, 5 Feb 2008 09:28:42 -0700

On 05.02.2008, at 01:52, Frank Stock wrote:

I am writing an application to update Frontbase from FileMaker.
I use AjaxLongResponse in my interface to see the progress in the browser.
But I always get an error:
<er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner.

Seems that your are accessing your editing contexts not correctly. Make sure, that you don't access eos in your thread, that are not in a thread local editing context and vice versa.


If you want to transfer objects through thread boundaries, the safest way is only passing in global ids and resolving them again in the thread. Look at ERXEOControlUtilities, there are helper methods for that.

cug

--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml



_______________________________________________
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: 
 >Illegal Lock usage (From: Frank Stock <email@hidden>)

  • Prev by Date: Re: Illegal Lock usage
  • Next by Date: Re: Stored procedures and prototypes problem
  • Previous by thread: Re: Illegal Lock usage
  • Next by thread: accessing relation...
  • Index(es):
    • Date
    • Thread