jsp 中的500空指针异常怎么改?
typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatprevent...
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception java.lang.NullPointerException
com.soft.admin.adminDAO.findAdministrator(adminDAO.java:151)
com.soft.admin.AdminAction.doPost(AdminAction.java:95)
com.soft.admin.AdminAction.doGet(AdminAction.java:40)
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.5.12 logs. 展开
com.soft.admin.adminDAO.findAdministrator(adminDAO.java:151)
com.soft.admin.AdminAction.doPost(AdminAction.java:95)
com.soft.admin.AdminAction.doGet(AdminAction.java:40)
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.5.12 logs. 展开
1个回答
2014-03-10
展开全部
com.soft.admin.adminDAO.findAdministrator(adminDAO.java:151)在这个adminDAO类中的findAdministrator方法中没有取到值,好好看看是什么原因导致的!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询