If not, follow Anjo's suggestion of overriding dispatchRequest() and logging out the response before returning it.
Jan 28 13:23:08 AM[50121] WARN NSLog - <er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
java.lang.NullPointerException
Jan 28 13:23:08 AM[50121] INFO NSLog - Application.handleException: Handling an Exception:
[2009-1-28 13:23:8 CST] <WorkerThread1> java.lang.NullPointerException
...
Jan 28 13:23:08 AM[50121] INFO NSLog - AMErrorPage.setPageType: pageType = exception
Application.dispatchRequest:
<script type="text/_javascript_">document.location.href='';</script>
Application.dispatchRequest:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...
So there's the request, coming from a small _javascript_ fragment. I don't know what's generating _that_, though.
That looks like what ERXRedirect can return:
if (ERXAjaxApplication.isAjaxRequest(context.request())) {
boolean hasUpdateContainer = context.request().stringFormValueForKey(ERXAjaxApplication.KEY_UPDATE_CONTAINER_ID) != null;
if (hasUpdateContainer) {
response.appendContentString("<script type=\"text/_javascript_\">");
}
else {
response.setHeader("text/_javascript_", "Content-Type");
}
response.appendContentString("document.location.href='';");
if (hasUpdateContainer) {
response.appendContentString("</script>");
}
How are you using that ERXRedirect again?