当前位置: 代码迷 >> Java Web开发 >> com.microsoft.sqlserver.jdbc.SQLServerException: 该连接已关闭。
  详细解决方案

com.microsoft.sqlserver.jdbc.SQLServerException: 该连接已关闭。

热度:127   发布时间:2016-04-17 01:27:59.0
运行时出现的奇怪异常
2008-10-17 9:46:45 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/MyFwinfo]
2008-10-17 9:46:45 org.apache.catalina.core.ApplicationContext log
信息: Closing WebApplicationContext of Struts ActionServlet 'action', module ''
2008-10-17 9:46:45 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2008-10-17 9:46:47 org.apache.catalina.core.ApplicationContext log
信息: Loading Spring root WebApplicationContext
2008-10-17 9:46:52 org.apache.catalina.core.ApplicationContext log
信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
&&&&&---2008-10-17 09:47:13在 DBComms.transmit 操作期间发生异常。异常:Socket closed。上下文:(7) [Thread[http-8080-4,5,main], IO:c9484, Dbc:a7476]。 
2008-10-17 09:47:13该连接已关闭。 
2008-10-17 9:47:13 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
com.microsoft.sqlserver.jdbc.SQLServerException: 该连接已关闭
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.checkClosed(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.getAutoCommit(Unknown Source)
at org.apache.commons.dbcp.DelegatingConnection.getAutoCommit(DelegatingConnection.java:241)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.getAutoCommit(PoolingDataSource.java:221)
at org.hibernate.jdbc.ConnectionManager.isAutoCommit(ConnectionManager.java:128)
at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:328)
at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:398)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1330)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at com.dao.impl.FwxxDAOHibImpl.search(FwxxDAOHibImpl.java:72)
at com.biz.impl.FwxxBizTmpl.search(FwxxBizTmpl.java:39)
at com.struts.action.FwxxAction.search(FwxxAction.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.web.Filters.doFilter(Filters.java:24)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  相关解决方案