Re: Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
Re: Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
- Subject: Re: Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
- From: Kaj Hejer <email@hidden>
- Date: Tue, 10 May 2005 12:26:55 +0200
Obs, I forgot to say that this seems to be an issue that has been
introduced with WO5.2.4.
-Kaj :)
On 10. mai 2005, at 11.49, Kaj Hejer wrote:
Hi!
Hi!
We like LockErrorScreamerEditingContext and want to use it as our
session.defaultEditingContext. The first line of our constructor in
Session is
setDefaultEditingContext(new LockErrorScreamerEditingContext());
But... when the session terminate (I think it is when the session
terminate) we get the following warning:
[2005-05-10 11:41:33 CEST] <WorkerThread1> !!! editing context
being disposed with 1 locks, ec:
LockErrorScreamerEditingContext@b81d4f
[2005-05-10 11:41:33 CEST] <WorkerThread1> !!! Most recently locked
by:
java.lang.Throwable
at LockErrorScreamerEditingContext._trace
(LockErrorScreamerEditingContext.java:95)
at LockErrorScreamerEditingContext.lock
(LockErrorScreamerEditingContext.java:39)
at com.webobjects.appserver.WOSession._awakeInContext
(WOSession.java:717)
at com.webobjects.appserver.WOApplication.restoreSessionWithID
(WOApplication.java:1550)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication(WOComponentRequestHandler.java:314)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at UIOApplication.dispatchRequest(UIOApplication.java:118)
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:552)
If we don't have the setDefaultEditingContext line we ocfource
don't get this message.
I have added "this" to the warning in
LockErrorScreamerEditingContext to be sure it is the ec that is
session.defaultEditingContext that gives this warning, and it is.
TIA for any input!
-Kaj :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40usit.uio.no
This email sent to email@hidden
_______________________________________________
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