问题描述
各位兄弟,小弟初学jsp,请帮帮忙看看哪里出错了,该怎么处理,谢谢!从主页面登陆后显示错误信息:typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjavax.servlet.ServletExceptionorg.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)javax.servlet.http.HttpServlet.service(HttpServlet.java:627)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.mmxbb.exam.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)rootcausejava.lang.NullPointerExceptionorg.mmxbb.exam.dao.ExamineeDAO.isAdminUser(ExamineeDAO.java:716)org.mmxbb.exam.business.AdminLogonAction.execute(AdminLogonAction.java:20)org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)javax.servlet.http.HttpServlet.service(HttpServlet.java:627)javax.servlet.http.HttpServlet.service(HttpServlet.java:729)org.mmxbb.exam.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:56)noteThefullstacktraceoftherootcauseisavailableintheApacheTomcat/5.5.28logs.
解决方案
解决方案二:
java.lang.NullPointerExceptionorg.mmxbb.exam.dao.ExamineeDAO.isAdminUser(ExamineeDAO.java:716)从这儿可以看出是ExamineeDAO类的isAdminUser方法716行出现空指针错误
解决方案三:
就是你的程序有问题了呗