Re: Help with stack trace from frozen application
Re: Help with stack trace from frozen application
- Subject: Re: Help with stack trace from frozen application
- From: Chuck Hill <email@hidden>
- Date: Thu, 10 Nov 2005 18:26:00 -0500
Hi Marcos,
I've been a bit busy lately. :-)
The thread below is indeed the cause of your freeze. We can see that
it happens in CreateInvoice.awake. You said in your other message
that you were creating peer editing contexts and locking and
unlocking them in awake/sleep. That is the cause of your freeze, I
am 100% certain. The previous request for this session called awake
() on a page twice (it can happen) and sleep only once and so left
the EC locked. The next request for this session deadlocks the
application as it waits forever for this EC to get unlocked.
Run, don't walk, to WOCode and get this
http://wocode.com/WOCode/Files/MultiECLockManager.java
Chuck
On Nov 9, 2005, at 5:59 PM, Marcos Trejo Munguia wrote:
Hi list, two days ago I send a very large stack trace, now I'm only
sending the suspicious thread, I only want to know if my guess is
correct and how can I fix it. Thank you.
WorkerThread11:
[1] java.lang.Object.wait (native method)
[2] java.lang.Object.wait (null)
[3] com.webobjects.foundation.NSRecursiveLock.lock
(NSRecursiveLock.java:72)
[4] com.webobjects.eocontrol.EOEditingContext.lock
(EOEditingContext.java:4,624)
[5] CreateInvoice.awake (CreateInvoice.java:36)
[6] com.webobjects.appserver.WOComponent._awakeInContext
(WOComponent.java:862)
[7] com.webobjects.appserver.WOComponent._awakeInContext
(WOComponent.java:853)
[8] com.webobjects.appserver.WOSession.restorePageForContextID
(WOSession.java:710)
[9]
com.webobjects.appserver._private.WOComponentRequestHandler._restorePa
geForContextID (WOComponentRequestHandler.java:156)
[10]
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedSession (WOComponentRequestHandler.java:277)
[11]
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
ithPreparedApplication (WOComponentRequestHandler.java:322)
[12]
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
uest (WOComponentRequestHandler.java:358)
[13]
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
est (WOComponentRequestHandler.java:432)
[14] com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1,306)
[15] com.webobjects.appserver._private.WOWorkerThread.runOnce
(WOWorkerThread.java:173)
[16] com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
[17] java.lang.Thread.run (null)
_______________________________________________
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
--
Coming in 2006 - an introduction to web applications using WebObjects
and Xcode http://www.global-village.net/wointro
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