当前位置: 代码迷 >> Java Web开发 >> tomcat运行一段时间出错
  详细解决方案

tomcat运行一段时间出错

热度:116   发布时间:2016-04-16 21:56:49.0
tomcat运行一段时间报错
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.26 logs.

tomcat运行一段时间后报如上错误,重启tomcat又能正常打开;郁闷,求大神……
------解决方案--------------------
看报错是你程序有问题啊,先检查下有可能为空的地方加判断控制一下,或者某些操作之后使得你某个地方为空了,感觉跟tomcat没啥关系,还有就是好像报错信息没贴全吧
------解决方案--------------------
这个问题应该是你写的网站JSP有错。
你去检查下jsp页面有没有结束的字符.
提示的错误里面有没有下面这段话?
/ticket_list.jsp(5,0) /public.jsp(12,3) Unterminated <%!
------解决方案--------------------
错误日志
------解决方案--------------------
 500是程序错误,应该是你写的action里面处理的时候出了空指针。更tomcat没关系。如果tomcat相关应该报404或者其它
  相关解决方案