Re: Illegal Lock usage
Re: Illegal Lock usage
- Subject: Re: Illegal Lock usage
- From: Chuck Hill <email@hidden>
- Date: Tue, 5 Feb 2008 08:28:31 -0800
You are implementing it wrong. I am guessing that you are using an
EC from the session in the long response page. The thread needs its
own EC that it locks and unlocks.
Chuck
On Feb 5, 2008, at 12:52 AM, Frank Stock wrote:
HI,
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.
[2008-02-04 19:25:12 CET] <WorkerThread0>
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 er.extensions.ERXEC.unlock(ERXEC.java:455)
at com.webobjects.appserver.WOSession._sleepInContext
(WOSession.java:736)
at com.webobjects.appserver.WOApplication.saveSessionForContext
(WOApplication.java:1514)
at er.extensions.ERXApplication.saveSessionForContext
(ERXApplication.java:1665)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication(WOComponentRequestHandler.java:329)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:435)
at er.ajax.AjaxRequestHandler.handleRequest
(AjaxRequestHandler.java:17)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest
(ERXApplication.java:1398)
at Application.dispatchRequest(Application.java:56)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
Is there a way to avoid this? Or am I impplementing this wrong?
I can see also next error):
Another Exception occurred while trying to clean the application:
java.lang.IllegalStateException: Illegal Lock usage: unlocking
thread not owner.
[2008-02-04 19:25:12 CET] <WorkerThread0>
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 er.extensions.ERXEC.unlock(ERXEC.java:455)
at com.webobjects.appserver.WOSession._sleepInContext
(WOSession.java:736)
at com.webobjects.appserver.WOApplication.saveSessionForContext
(WOApplication.java:1514)
at er.extensions.ERXApplication.saveSessionForContext
(ERXApplication.java:1665)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:385)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:435)
at er.ajax.AjaxRequestHandler.handleRequest
(AjaxRequestHandler.java:17)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest
(ERXApplication.java:1398)
at Application.dispatchRequest(Application.java:56)
at com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
Thanks for helping,
Frank Stock
_______________________________________________
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