修改数据库表出错!
数据库用的是SQL Server 2005;
我用表名tb_user
ResultSet rsall=db.getRs("select * from tb_user");
可以查询;
修改表名tb_useree
ResultSet rsall=db.getRs("select * from tb_useree");
出错 HTTP Status 500 -
type Exception report
message
description
The server encountered an internal error () that prevented it from fulfilling this request.exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /show.jsp at line 22
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle
JspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.NullPointerException org.apache.jsp.show_jsp._jspService(show_jsp.java:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.23 logs.
------解决方案--------------------
rsall为null,所以报NULLException异常,
先在后台查询要查询的语句,
执行成功,在放到查询语句中。
------解决方案--------------------我想了解下、你是否是在服务器开着的情况下
修改了数据库的表名 然后在jsp页面上改了一些属性比如查询了useree这个表、
如果重新编译呢试试呢、
在数据库中执行下 select * from useree 看是否有数据。
------解决方案-------------------- /show.jsp at line 22 是啥?
我的异常网推荐解决方案:An exception occurred processing JSP page,http://www.aiyiweb.com/j2se/33144.html
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html