Application Stops Responding - Strange Conditions
Application Stops Responding - Strange Conditions
- Subject: Application Stops Responding - Strange Conditions
- From: Hunter Hillegas <email@hidden>
- Date: Tue, 19 Apr 2005 20:34:35 -0700
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).
I'm looking for some help...
Any ideas? Other places I can log/check?
Platform Details:
WO 5.2.3 / OS X
XCode w/ Direct Connect OFF
ERExtensions CVS HEAD is an included framework.
_______________________________________________
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