|
Re: How to obtain original line numbers for exceptions in JSPs? [message #185226 is a reply to message #185007] |
Tue, 19 December 2006 13:53 |
Eclipse User |
|
|
|
Originally posted by: dserodio.gmail.com
Michael Moser wrote:
> I am trying to debug a JSP that throws a null pointer exception. The
> line number that's reported is the one in the generated .java code and
> has no meaning for the jsp. Where does Geronimo put those temporary
> files, so that I can peek into those to figure out, which line in my
> original .jsp file causes this?
If you're using Geronimo + Tomcat, it should be under a "work/"
directory somewhere inside the Geronimo installation (under catalina/ or
something like that).
HTH,
Daniel Serodio
|
|
|
Re: How to obtain original line numbers for exceptions in JSPs? [message #185464 is a reply to message #185007] |
Sat, 30 December 2006 01:21 |
David Williams Messages: 722 Registered: July 2009 |
Senior Member |
|
|
On Fri, 15 Dec 2006 10:11:43 -0500, Michael Moser <mmo@zurich.ibm.com>
wrote:
> Or how else does one debug this?
Don't forget, you can use all the normal debug facilities, such as setting
breakpoints,
etc, in the JSP, including setting Java Exception breakpoints ... but, as
with most Java,
NullPointerExceptions are sometimes common, so you'll sometimes hit many
of these
before hitting the unexpected one. This can be helped somewhat by setting
a breakpoint
near the beginning of your JSP, and once you hit it, _then_ turn on the
NPE breakpoint.
|
|
|
Powered by
FUDForum. Page generated in 0.03120 seconds