Connection reset 问题

ypchengmsdn 2009-09-11 05:52:07
javax.servlet.ServletException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset 我在连接数据库时出现这个错误,哪位高手能说说这是什么意思?

跟这个有什么关系:con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);

在网上没找到答案!!!

...全文
1522 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianyadedengdai123 2012-01-06
  • 打赏
  • 举报
回复
是因为你的数据库服务关掉了
ypchengmsdn 2009-09-11
  • 打赏
  • 举报
回复
出现这个错误的主要原因是:在我刷新一个页面的时候,就出现了这个Exception?

这里:


org.apache.jasper.JasperException: An exception occurred processing JSP page /admin/chklogin.jsp at line 12

9: "'and user_password='"+password+"'";
10:
11: //smt = con.createStatement();
12: Statement smt_1 = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
13: rs = smt_1.executeQuery(sql);
14: if(!rs.next()) {
15: String errmsg= "error1";
ypchengmsdn 2009-09-11
  • 打赏
  • 举报
回复
还有:
root cause :

javax.servlet.ServletException: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.admin.chklogin_jsp._jspService(chklogin_jsp.java:135)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

ypchengmsdn 2009-09-11
  • 打赏
  • 举报
回复
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source)
com.microsoft.jdbc.base.BaseStatement.setupImplConnection(Unknown Source)
com.microsoft.jdbc.base.BaseStatement.<init>(Unknown Source)
com.microsoft.jdbc.base.BaseConnection.createStatement(Unknown Source)
org.apache.jsp.admin.chklogin_jsp._jspService(chklogin_jsp.java:116)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
rookie001 2009-09-11
  • 打赏
  • 举报
回复
试着重启数据库。。
跟那个没关系吧。只是创建了statement,结果集是滚动的敏感的,可更新的
luxiaoshuai 2009-09-11
  • 打赏
  • 举报
回复
能把所有ERRO都贴出来吗?

62,634

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧