Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
- Subject: Any problems with using LockErrorScreamerEditingContext as session.defaultEditingContext?
- From: Kaj Hejer <email@hidden>
- Date: Tue, 10 May 2005 11:49:46 +0200
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._dispatchWit
hPreparedApplication(WOComponentRequestHandler.java:314)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
t(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:
This email sent to email@hidden