日期:2014-05-18  浏览次数:20809 次

JSP 连接SQL2000数据库问题
在JSP中我用JDBC-ODBC可以连接SQL2000,但是用JDBC   纯JAVA方式老是连接不是,错误为:

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:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root   cause  

java.lang.NullPointerException
com.messboard.dbconn.DBConn.executeQuery(DBConn.java:81)
org.apache.jsp.index_jsp._jspService(index_jsp.java:65)
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:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note   The   full   stack   trace   of   the   root   cause   is   available   in   the   Apache   Tomcat/5.5.20   logs.



------解决方案--------------------
java.lang.NullPointerException空指针。把DBConn贴上来看看
------解决方案--------------------
空指针 什么没有加载完全
------解决方案--------------------
com.messboard.dbconn.DBConn.executeQuery(DBConn.java:81)
DBConn有问题
------解决方案--------------------
SQL2000的SP3补丁打了没有?
JDBC补丁打了没有?

------解决方案--------------------
应该是你bean没有遵守javabean的规范
------解决方案--------------------
windows和sqlsever混合登陆!!!OK!!
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html