Throwing an exception from an Ajax action bypasses my
AMErrorPage, somehow logs me out of the app, and returns my Main
page. I can't even see how it's occurring. There's literally
nothing in the console beyond a log message from
AMErrorPage.setPageType(). Again, this is a slightly different
issue than the OP, and I assume your code above was for
I have the same code (more or less) and it worked the last time
that I tested it. It sounds like there might be some other
request getting to the app after the one causing the exception.
Try overridding dispatchRequest and logging out each request.uri().
Looks like there is:
Jan 27 11:49:24 AM WARN NSLog -
<er.ajax.AjaxRequestHandler>: Exception occurred while handling
Jan 27 11:49:24 AM INFO NSLog -
Application.handleException: Handling an Exception:
[2009-1-27 11:49:24 CST] <WorkerThread1>
... [Stack trace of my deliberately-generated NPE deleted]
Unrelated, but you can do this more cleanly with
Jan 27 11:49:24 AM INFO NSLog - AMErrorPage.setPageType:
pageType = exception
Application.dispatchRequest: URI = /cgi-bin/WebObjects/AM.woa/wo/5.0
That looks unusual (to me).
The thing to do now is to look in that page for something (form,
that is sending a request after the exception.
I can't find it anywhere. It's not on the page where the exception
was generated, and I've pared down AMErrorPage to essentially
nothing. I've searched with Safari's Web Inspector which apparently
looks in the source, the DOM and loaded resources.
Can you think of another way I can track this down?
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