On 28/01/2009, at 10:59 AM, Chuck Hill wrote: On Jan 27, 2009, at 4:18 PM, Paul Hoadley wrote: On 28/01/2009, at 10:08 AM, Chuck Hill wrote:
On Jan 26, 2009, at 11:17 PM, Paul Hoadley wrote:
On 27/01/2009, at 5:11 PM, Chuck Hill wrote:
FireBug and FireFox. Take a look at the Net log. You can see all the traffic back and forth. Often these things came in an Ajax update and so don't show up in the page source (as originally loaded). Look at the response content in FireBug and you should be able to find it.
Sorry Chuck, I'm obviously having a slow afternoon (and it's 41ºC here)
It is snowing here. I am willing to trade.
Did not even consider that, did you?
Actually, I did. It's 42ºC today, 39ºC tomorrow. Please send snow.
---I assume you mean to look using the Net log on the page where I'm generating the Exception, but _after_ the exception has been thrown, right? I don't get the chance, as the app responds to the request, returning the login page, and the inspector is updated. Am I looking in the right place?
Yes, almost. What I would do is go to this before you trigger the exception and hit Clear. Then trigger the exception, and see what show up.
When I trigger the exception (by using an AjaxUpdateLink, and I suspect this is the problem), I assume the errant request is coming from some JS executed due to the onclick attribute. In which case, I can't seem to catch it with Firebug. I trigger the exception, and the next thing that happens is I'm back at Main. By then it's too late, all Firebug shows is the errant request itself, and the rest of the requests/responses to render Main.
Can you not scroll back up? I thought it kept quite a record of the RR loops.
Maybe I have FireBug configured wrong, but I can't seem to scroll back.
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: ...
So there's the request, coming from a small _javascript_ fragment. I don't know what's generating _that_, though.
|