状态无效,Connection对象关闭。失去了连接

时间:2015-01-09 13:10:22

标签: java sql-server apache sql-server-2008 tomcat

我有一台带有倍数系统的服务器。 应用程序在java中,DB是sql服务器。

当我点击访问系统时,他在屏幕上打印了这个例外:

    java.sql.SQLException: Invalid state, the Connection object is closed. at
 net.sourceforge.jtds.jdbc.TdsCore.checkOpen(TdsCore.java:452) at 
net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:727) at 
net.sourceforge.jtds.jdbc.TdsCore.executeSQL(TdsCore.java:951) at 
net.sourceforge.jtds.jdbc.MSCursorResultSet.cursorFetch(MSCursorResultSet.java:698) at 
net.sourceforge.jtds.jdbc.MSCursorResultSet.next(MSCursorResultSet.java:1137) at 
wfr.com.WFRDBSystem.createFormList(WFRDBSystem.java:225) at 
wfr.com.WFRSystem.loadSystem(WFRSystem.java:2138) at 
wfr.com.WFRSystem.create(WFRSystem.java:794) at 
wfr.com.WFRSystem.create(WFRSystem.java:687) at wfr.com.WFRDBSystem.(WFRDBSystem.java:41) 
at wfr.com.WFRSystem.getInstance(WFRSystem.java:297) at 
wfr.com.WFRSystem.getInstance(WFRSystem.java:262) at wfr.sys.WFR.(WFR.java:23) at 
wfr.sys.WFRLoader.createSystem(WFRLoader.java:150) at 
wfr.sys.WFRLoader.getWFR(WFRLoader.java:139) at 
wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:143) at 
wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:129) at 
wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:125) at wfr.web.Action.
(Action.java:88) at wfr.web.Action.(Action.java:68) at wfr.web.actions.OpenAction.
(OpenAction.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39
) at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl
.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at 
wfr.web.ActionFactory.getAction(ActionFactory.java:72) at 
wfr.web.Controller.process(Controller.java:99) at 
wfr.web.Controller.doGet(Controller.java:57) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav
a:290) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at wfr.web.ContextFilter.doFilter(ContextFilter.java:86) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.jav
a:235) at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java
:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at 
java.lang.Thread.run(Thread.java:595) 

我尝试禁用防火墙并重新启动数据库用户的passwd。

你们可以帮我脱掉这条甘道夫吗? TY

0 个答案:

没有答案