Re: eclipse debugging help
Re: eclipse debugging help
- Subject: Re: eclipse debugging help
- From: james o'loughlin <email@hidden>
- Date: Wed, 22 Oct 2008 14:54:39 -0400
On Oct 22, 2008, at 12:10 PM, Florijan Stamenkovic wrote:
James,
A bit more info might be necessary to resolve this...
Your app hangs? As in it deadlocks? Or as in takes a seemingly
unnecessary amount of time to compute something? How did you obtain
the stack below, was an exception thrown, or did you manually
suspend the worker thread and copy it? What are other threads in
your app doing? How reproducible is this? What kind of an object is
being formatted?
If it is a deadlock, and your worker thread stops for seemingly no
reason at NSTimestampFormater.format(...), it could be that either
the method or a block in it is synchronized and waiting for
something to release the lock.
F
it appears the app deadlocks. my browser hangs and eclipse's debug
window opens with the stack i've attached. it does not appear that
something is being computed and needs to run its course.
yes, there is an exception being thrown but i can't find the source of
this exception. the only feedback i get is the stack window telling
me the last piece of my app it talked to was the PageViewer
component. from there i'm at a loss.
all of the other threads are (Running).
it's reproducible every time.
the crux is i'm not sure what object is being formatted. in the
passed, i've found the problem by removing removing HTML from my
component until i find the section of code throwing the exception.
this is tedious and worse than programming cobol on a vax with a
printer... i eventually find the exception but i can't continue this
debugging process with any sanity. i'd love for eclipse to point me
to the problem.
thanks for listening...
./james
On Oct 21, 2008, at 14:25, james o'loughlin wrote:
i'm pulling my hair out sometime trying to find my errors. my app
hangs and this stack doesn't do me much good. i see PageViewer is
the last component my app talked to and then i can't find nuttin'...
can someone please push or shove me in the right direction to use
eclipse to debug my apps? most of the time eclipse will tell me
the .java file and line # of the error.
thanks,
./james
stack:
NSTimestampFormatter.format(Object, StringBuffer, FieldPosition)
line: 642
NSTimestampFormatter(Format).format(Object) line: 133
WOString.appendToResponse(WOResponse, WOContext) line: 65
WOGenericContainer
(WODynamicGroup).appendChildrenToResponse(WOResponse, WOContext)
line: 126
WOGenericContainer.appendToResponse(WOResponse, WOContext) line: 44
WOGenericContainer
(WODynamicGroup).appendChildrenToResponse(WOResponse, WOContext)
line: 126
WOGenericContainer.appendToResponse(WOResponse, WOContext) line: 44
WOConditional(WODynamicGroup).appendChildrenToResponse(WOResponse,
WOContext) line: 126
WOConditional.appendToResponse(WOResponse, WOContext) line: 94
WOConditional(WODynamicGroup).appendChildrenToResponse(WOResponse,
WOContext) line: 126
WOConditional.appendToResponse(WOResponse, WOContext) line: 94
WODynamicGroup.appendChildrenToResponse(WOResponse, WOContext)
line: 126
WODynamicGroup.appendToResponse(WOResponse, WOContext) line: 136
PageViewer(WOComponent).appendToResponse(WOResponse, WOContext)
line: 1122
Session(WOSession).appendToResponse(WOResponse, WOContext) line:
1385
WOApplication.appendToResponse(WOResponse, WOContext) line: 1794
WOComponentRequestHandler._dispatchWithPreparedPage(WOComponent,
WOSession, WOContext, NSDictionary) line: 242
WOComponentRequestHandler._dispatchWithPreparedSession(WOSession,
WOContext, NSDictionary) line: 298
WOComponentRequestHandler
._dispatchWithPreparedApplication(WOApplication, WOContext,
NSDictionary) line: 332
WOComponentRequestHandler._handleRequest(WORequest) line: 369
WOComponentRequestHandler.handleRequest(WORequest) line: 442
WOApplication.dispatchRequest(WORequest) line: 1687
WOWorkerThread.runOnce() line: 144
WOWorkerThread.run() line: 226
Thread.run() line: 613
-----
owns: java.lang.Object (id=81)
com
.webobjects
.foundation.NSTimestampFormatter.format(java.lang.Object,
java.lang.StringBuffer, java.text.FieldPosition) line: 642
com
.webobjects
.foundation
.NSTimestampFormatter(java.text.Format).format(java.lang.Object)
line: 133
com
.webobjects
.appserver
._private
.WOString.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 65
com
.webobjects
.appserver
._private
.WOGenericContainer
(com
.webobjects
.appserver
._private
.WODynamicGroup
).appendChildrenToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 126
com
.webobjects
.appserver
._private
.WOGenericContainer
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 44
com
.webobjects
.appserver
._private
.WOGenericContainer
(com
.webobjects
.appserver
._private
.WODynamicGroup
).appendChildrenToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 126
com
.webobjects
.appserver
._private
.WOGenericContainer
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 44
com
.webobjects
.appserver
._private
.WOConditional
(com
.webobjects
.appserver
._private
.WODynamicGroup
).appendChildrenToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 126
com
.webobjects
.appserver
._private
.WOConditional
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 94
com
.webobjects
.appserver
._private
.WOConditional
(com
.webobjects
.appserver
._private
.WODynamicGroup
).appendChildrenToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 126
com
.webobjects
.appserver
._private
.WOConditional
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 94
com
.webobjects
.appserver
._private
.WODynamicGroup
.appendChildrenToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 126
com
.webobjects
.appserver
._private
.WODynamicGroup
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 136
PageViewer
(com
.webobjects
.appserver
.WOComponent).appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 1122
Session
(com
.webobjects
.appserver
.WOSession).appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 1385
com
.webobjects
.appserver
.WOApplication
.appendToResponse(com.webobjects.appserver.WOResponse,
com.webobjects.appserver.WOContext) line: 1794
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedPage(com.webobjects.appserver.WOComponent,
com.webobjects.appserver.WOSession,
com.webobjects.appserver.WOContext,
com.webobjects.foundation.NSDictionary) line: 242
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedSession(com.webobjects.appserver.WOSession,
com.webobjects.appserver.WOContext,
com.webobjects.foundation.NSDictionary) line: 298
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._dispatchWithPreparedApplication
(com.webobjects.appserver.WOApplication,
com.webobjects.appserver.WOContext,
com.webobjects.foundation.NSDictionary) line: 332
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
._handleRequest(com.webobjects.appserver.WORequest) line: 369
com
.webobjects
.appserver
._private
.WOComponentRequestHandler
.handleRequest(com.webobjects.appserver.WORequest) line: 442
com
.webobjects
.appserver
.WOApplication.dispatchRequest(com.webobjects.appserver.WORequest)
line: 1687
com.webobjects.appserver._private.WOWorkerThread.runOnce() line: 144
com.webobjects.appserver._private.WOWorkerThread.run() line: 226
java.lang.Thread.run() line: 613
_______________________________________________
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
_______________________________________________
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