当前位置: 代码迷 >> J2EE >> 这种异常如何解决呢
  详细解决方案

这种异常如何解决呢

热度:135   发布时间:2016-04-22 03:07:21.0
这种错误怎么解决呢?
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.daimami.com/search?q=317
  相关解决方案