|
From: Leif M. <le...@ta...> - 2004-03-25 23:39:57
|
Yuval,
Yuval Zantkeren wrote:
>I fixed the problem it was again as you said the java was not configure
>properly in the wrapper.conf file.
>
>
Great glad you got things working.
>I have one more question, How do I debug the errors that I receive I see it
>like this in the log:
>INFO | jvm 1 | 2004/03/22 20:04:27 | Error:
>java.lang.NullPointerException
>
>
Where is the above message coming from? I am pretty sure that is not
from the
Wrapper code. Most likely you have some code like the following:
try {
// Do something that is broken
} catch ( Exception e ) {
System.out.println( "Error: " + e );
}
The problem with the above is that it will tell you that you had an
exception, but not
what it is. If you want to get a stack trace, and you do, then you
should do the
following.
try {
// Do something that is broken
} catch ( Exception e ) {
System.out.println( "Error: " + e );
e.printStackTrace();
}
The stack trace will then let you find where in your program the
exception is being
thrown.
Logging tools make the above a lot cleaner.
>how can I get more details about the error? If I configure
>wrapper.debug=true will help?
>
>
It depends where the error is coming from. setting debug to true only
helps with Wrapper
related problems. The above was in your log file anyways wasn't it?
Cheers,
Leif
|