Re: Application Stops Responding - Strange Conditions
Re: Application Stops Responding - Strange Conditions
- Subject: Re: Application Stops Responding - Strange Conditions
- From: Sacha Mallais <email@hidden>
- Date: Tue, 19 Apr 2005 20:48:18 -0700
On Apr 19, 2005, at 8:34 pm, Hunter Hillegas wrote:
I am maintaining an existing shopping cart type application and I've
run into a problem I've been unable to fix... So far I have spent
several hours looking at it and done some Googling, etc... No luck so
far.
One of my tasks was to take some page crumb hyperlinks that used
component actions and convert them to direct actions.
The page crumbs work like this:
Each page inserts instances of the pages 'above' it in the hierarchy
into an NSMutableArray:
NSMutableArray crumbs = new NSMutableArray();
crumbs.add(pageWithName("Main"));
crumbs.add(pageWithName("Products"));
crumbs.add(this);
This array is traversed to create HTML that renders like this with a
WORepetition:
Home > Products > Certain Product
The components themselves have the direct action name inside of them,
fetched during awake(), and the WOHyperlink uses that String as the
'directActionName'. These crumbs are inside a component that is
included on every page of this application.
The crumbs work perfectly but... there is a wrinkle.
Since changing the crumbs to use direct actions, when I am several
levels deep as in the above example, submitting a form via POST from
an action method causes the app to stop responding. Some uninteresting
logging messages still make it to stdout but no pages will render, not
even if I click a different DA URL from the navigation bar in the Web
app.
If I change the crumbs back to using components, all is well... I have
isolated it to that area but I don't know where to go from here. It is
fully repeatable and occurs every time.
I tried adding logging to the action method that submits the form but
nothing ever hit the log.
I tried overriding WOApplication.dispatchRequest() and logging stuff
out but what I got didn't help me (headers).
I tried a thread dump from the JVM but I didn't see anything that
looked suspicious (though this was my first thread dump - I could have
missed something).
Can you post the thread dump? The first thing that comes to mind is
deadlock.
sacha
--
Sacha Michel Mallais - 400 lb. chimp
Global Village Consulting Inc.: http://www.global-village.net/
The bird of paradise alights only upon the hand that does not grasp.
_______________________________________________
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