0

我们的 apache tomcat 服务器正在打印随机空指针异常。通常你会看到一个堆栈跟踪..

INFO   | jvm 1    | srvmain | 2012/03/30 13:44:43.733 | SEVERE: Servlet.service() for servlet frontend threw exception 
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:43.733 | java.lang.NullPointerException
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:46.139 | Mar 30, 2012 1:44:46 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:46.139 | SEVERE: Servlet.service() for servlet frontend threw exception
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:46.139 | java.lang.NullPointerException
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:47.998 | Mar 30, 2012 1:44:47 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:47.998 | SEVERE: Servlet.service() for servlet frontend threw exception
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:47.998 | java.lang.NullPointerException
INFO   | jvm 1    | srvmain | 2012/03/30 13:44:50.623 | Mar 30, 2012 1:44:50 PM org.apache.catalina.core.StandardWrapperValve invoke
4

1 回答 1

1

如果您想要完整的堆栈跟踪,您将不得不重新启动服务器。您需要设置以下 JVM 选项:
XX:-OmitStackTraceInFastThrow

于 2012-03-30T21:39:10.010 回答