Oh yes, I should add I did find the error (this time).
I forgot to put an object into the request attributes which the JSP was expecting. So when I tried to use the object, instant NullPointerException. But it would have been nice to know the line number.....
Sigh. Yes MVC is nice and all, but I hate a lot of code mixed with HTML. So I use a servlet and JSP mix.
And as for the stack trace, that IS what I get:
StackTraceElement[] trace = fatal.getStackTrace();
which is what
myException.printStackTrace(System.err);
does.
The trace gets put into a...
More than just the NullPointerException, though i do not even get that. The code I use (in an all-encompassing try block):
catch (Exception fatal)
{
// if we are here, then something somewhere has seriously failed
StackTraceElement[] trace = fatal.getStackTrace();
for (int i = 0; i <...
Ok, I get this error quite a bit.
It is not really helpful. In most cases a null reference is being used. However the error msg does not tell me WHERE the error occured. I can locate the working Tomcat .class and .java files for the JSP easily enough.
Is there a way to get Tomcat to report at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.