servlet提交后总出现异常!求帮助
--------------------------------------------
type Exception report
message
description
The server encountered an internal error () that prevented it from fulfilling this request.exception
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 org.apache.jsp.display_jsp._jspService(display_jsp.java:88)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
--------------------------------------------
提交后 就出现这种异常报告
------解决方案--------------------空指针异常啊,可能是你JSP某个地方的代码写错了。检查一下。
java.lang.
NullPointerException
------解决方案--------------------到你的tomcat的 work目录下找到display_jsp.java文件
88行,这里 没有得到你想要的值,为null.然后自己判断是display这个jsp哪行出现了问题。如果判断不出来就用打印语句一句一句打。找出出错的地方。
------解决方案--------------------java.lang.NullPointerException
跟踪一下,可能是servlet或者jsp页面里面有错误。
------解决方案--------------------我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html