请高手指点个关于JSP的问题
出现如下错误:
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
beans.PageNumber.myQuery(PageNumber.java:29)
org.apache.jsp.jiaofei_jsp._jspService(jiaofei_jsp.java:155)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[解决办法]
空指针 PageNumber.java:29 jiaofei_jsp.java:155
传的值可能为空
[解决办法]
你可以看tomcat的 startup那里提示的错误原因
[解决办法]
在Tomcat的work目录(里边会有你自己的项目名称的目录)下去找到这个文件jiaofei_jsp.java然后查看155行,看你是哪个对像为null了
[解决办法]
ding