注册 登录
编程论坛 J2EE论坛

Eclipse做的系统运行有错误,是servlet的问题么?

ak47zy 发布于 2007-07-28 19:34, 571 次点击

type Exception report

message

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

exception

java.lang.NullPointerException
com.sccp.petsystem.service.LoginService.validateLogin(LoginService.java:23)
com.sccp.petsystem.servlet.LoginServlet.doPost(LoginServlet.java:44)
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

4 回复
#2
doumao2007-08-03 15:25
what what???
#3
wildleopard2007-08-04 12:52

java.lang.NullPointerException
com.sccp.petsystem.service.LoginService.validateLogin(LoginService.java:23)
com.sccp.petsystem.servlet.LoginServlet.doPost(LoginServlet.java:44)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

看一下你写的servlet吧.

#4
Gramary2007-08-04 13:41
空指针错误``
有对象没被实力化就被使用了
#5
小轩子2007-08-06 18:00

恩我同意楼上的看法,应该是空指针异常。你检查以下是否又地方没有实例化。

1