日期:2014-05-20  浏览次数:20921 次

这种错误怎么解决呢?
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
Regist.doPost(Regist.java:26)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


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


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

Apache Tomcat/6.0.13[code=HTML][/code]

------解决方案--------------------
Regist.java:26行 有东西为null
------解决方案--------------------
空指针异常

有东东为空你就拿来用了
------解决方案--------------------
在定义了这个变量
Java code
 ConnSql ConMySql = null;

------解决方案--------------------
楼上正解!

java.lang.NullPointerException 空指针异常了!
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html