Re: Illegal Lock usage
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