日期:2014-05-19  浏览次数:20630 次

请问高人帮忙解决一下这个问题谢谢

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.handleJspException(JspServletWrapper.java:498)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)


root cause 

java.lang.NullPointerException
org.apache.jsp.articleDetailFlat_jsp._jspService(articleDetailFlat_jsp.java:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)



------解决方案--------------------
到该文件------->articleDetailFlat_jsp.java的68行处,并对照你的jsp文件,检查NullPointerException的原因
------解决方案--------------------
探讨

到该文件------->articleDetailFlat_jsp.java的68行处,并对照你的jsp文件,检查NullPointerException的原因

------解决方案--------------------
估计是这句
Connection conn = DB.getConn();
得不到连接,以致后面的createStatement报空指针错误
你的DB类中的这几个方法是怎么写的
------解决方案--------------------
提交到articleDetailFlat.jsp页面的url有问题吧
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html