[求助]为什么在JSP做的系统中添加数据有这样的提示?
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException com.department.Add.doPost(Add.java:53) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) 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.28 logs.
这是什么意思?
搜索更多相关主题的帖子:
JSP 系统 提示
----------------解决方案--------------------------------------------------------
java.lang.NullPointerException
空指针异常!!检查下是否有变量为空!
----------------解决方案--------------------------------------------------------
那要怎么解决呢???
----------------解决方案--------------------------------------------------------
NullPointerException 空指针异常,通常解决的办法就,
定义变量的时候一点要给他赋值,我在做一个程序时没有
给变量赋值,就出咯很大的麻烦!!~
----------------解决方案--------------------------------------------------------