You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hua Zhang <hz...@gmail.com> on 2022/09/08 14:30:35 UTC

Get more debug information?

Hi Tomcat,

I have a question about how to get more debug information in a tomcat log
file. Sometimes my websites, which run on tomcat 9.0.43, suddenly all went
down without a good reason.

When this happens, the only thing I can do is restart the Tomcat service.

I am trying to figure out why it happened, however in the log file
(catalina.out), there is just a repeated bunch of java NullPointerException.

[2022-09-07 21:44:01] [crit] Error processing request
[2022-09-07 21:44:01] [crit] java.lang.NullPointerException
[2022-09-07 21:48:59] [crit] Error processing request
[2022-09-07 21:48:59] [crit] java.lang.NullPointerException
[2022-09-07 21:54:48] [crit] Error processing request
[2022-09-07 21:54:48] [crit] java.lang.NullPointerException

So my question is: is there a way to get more debug information in the log
file? If so, how?


Best regards,

Hua

Re: Get more debug information?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Hua,

On 9/8/22 10:30, Hua Zhang wrote:
> Hi Tomcat,
> 
> I have a question about how to get more debug information in a tomcat log
> file. Sometimes my websites, which run on tomcat 9.0.43, suddenly all went
> down without a good reason.

You might want to consider an upgrade. That version of Tomcat is 18 
months old.

> When this happens, the only thing I can do is restart the Tomcat service.
> 
> I am trying to figure out why it happened, however in the log file
> (catalina.out), there is just a repeated bunch of java NullPointerException.
> 
> [2022-09-07 21:44:01] [crit] Error processing request
> [2022-09-07 21:44:01] [crit] java.lang.NullPointerException
> [2022-09-07 21:48:59] [crit] Error processing request
> [2022-09-07 21:48:59] [crit] java.lang.NullPointerException
> [2022-09-07 21:54:48] [crit] Error processing request
> [2022-09-07 21:54:48] [crit] java.lang.NullPointerException
> 
> So my question is: is there a way to get more debug information in the log
> file? If so, how?

Can you post the contents of your logging.properties file? My guess is 
that you have changed it from the default. Better yet -- can you send a 
'diff' of your file relative to the stock logging.properties file that 
shipped with your Tomcat package?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org