当前位置: 代码迷 >> Java相关 >> HTTP Status 500错误!!急!!
  详细解决方案

HTTP Status 500错误!!急!!

热度:286   发布时间:2008-09-17 17:35:04.0
HTTP Status 500错误!!急!!
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
    biz.ChaKanServlet.doGet(ChaKanServlet.java:612)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.0.27
搜索更多相关的解决方案: Status  HTTP  

----------------解决方案--------------------------------------------------------
java.lang.NullPointerException

应该是代码中有对象没有初始化活没有初始化成功
----------------解决方案--------------------------------------------------------
记得我当时加上了这么一句
比如说:
Object o;
if(o==null){
  //这里初始化o对象;  
}
----------------解决方案--------------------------------------------------------
  相关解决方案