主题:jsp连接oracle有错误,大家帮忙看看!
jsp连接oracle我是通过javabean实现的。
当我调试javabean时,没有问题,能够通过java查询出数据,当包含在jsp中就出现了问题。
问题如下:
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:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.lybbs.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)
root cause
java.lang.NullPointerException
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:145)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.lybbs.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
会不会与web.xml配置有关系。
望哪位兄弟赐教!谢谢!
当我调试javabean时,没有问题,能够通过java查询出数据,当包含在jsp中就出现了问题。
问题如下:
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:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.lybbs.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)
root cause
java.lang.NullPointerException
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:145)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.lybbs.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:170)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
会不会与web.xml配置有关系。
望哪位兄弟赐教!谢谢!