我们的apache tomcat服务器正在打印随机的nullpointer异常。通常你会看到一个堆栈跟踪..
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
答案 0 :(得分:1)
如果需要完整的堆栈跟踪,则必须重新启动服务器。您需要设置以下JVM选项:
XX:-OmitStackTraceInFastThrow