Today WebLogic's Alllog log reported a lot of socket closed errors.
# # # Cause:org.hibernate.exception.JDBCConnectionException:IO error: Socket closed
At Com.gg.corm.exceptions.ExceptionFactory.wrapException (exceptionfactory.java:23) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.session.defaults.DefaultSqlSession.selectList (defaultsqlsession.java:104) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.session.defaults.DefaultSqlSession.selectList (defaultsqlsession.java:95) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.session.defaults.DefaultSqlSession.selectOne (defaultsqlsession.java:59) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.sproc.core.base.dao.mybatisdao$6.execute (mybatisdao.java:241) ~[sproc-core-1.3.1-20141225.jar : 1.3.1-20141225]
At Org.hibernate.jdbc.WorkExecutor.executeWork (workexecutor.java:54) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.internal.sessionimpl$2.accept (sessionimpl.java:1936) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.internal.sessionimpl$2.accept (sessionimpl.java:1933) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork (jdbccoordinatorimpl.java:211) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.internal.SessionImpl.doWork (sessionimpl.java:1954) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.internal.SessionImpl.doWork (sessionimpl.java:1940) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Com.gg.sproc.core.base.dao.MyBatisDAO.getObject (mybatisdao.java:236) ~[sproc-core-1.3.1-20141225.jar : 1.3.1-20141225]
... Common frames omitted
caused By:org.hibernate.exception.JDBCConnectionException:IO error: Socket closed
At Org.hibernate.exception.internal.SQLStateConversionDelegate.convert (sqlstateconversiondelegate.java:131) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.exception.internal.StandardSQLExceptionConverter.convert (standardsqlexceptionconverter.java:49 ) ~[com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert (sqlexceptionhelper.java:125) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert (sqlexceptionhelper.java:110) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation ( abstractstatementproxyhandler.java:129) ~[com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke (abstractproxyhandler.java:81) ~[ Com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
At Com.sun.proxy. $Proxy 250.execute (Unknown Source) ~[na:na]
At Com.gg.corm.executor.statement.PreparedStatementHandler.query (preparedstatementhandler.java:56) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.executor.statement.RoutingStatementHandler.query (routingstatementhandler.java:70) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
At Sun.reflect.GeneratedMethodAccessor197.invoke (Unknown Source) ~[na:na]
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) ~[na:1.7.0_40]
At Java.lang.reflect.Method.invoke (method.java:606) ~[na:1.7.0_40]
At Com.gg.corm.plugin.Plugin.invoke (plugin.java:59) ~[gg-top-corm-3.1.2-20141209.jar:na]
At Com.sun.proxy. $Proxy 234.query (Unknown Source) ~[na:na]
At Com.gg.corm.executor.SimpleExecutor.doQuery (simpleexecutor.java:69) ~[gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.executor.BaseExecutor.queryFromDatabase (baseexecutor.java:267) ~[gg-top-corm-3.1.2-20141209.jar: Na
At Com.gg.corm.executor.BaseExecutor.query (baseexecutor.java:141) ~[gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.executor.CachingExecutor.query (cachingexecutor.java:105) ~[gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.executor.CachingExecutor.query (cachingexecutor.java:81) ~[gg-top-corm-3.1.2-20141209.jar:na]
At Com.gg.corm.session.defaults.DefaultSqlSession.selectList (defaultsqlsession.java:101) ~[ Gg-top-corm-3.1.2-20141209.jar:na]
... Common frames omitted
caused By:java.sql.SQLRecoverableException:IO error: Socket closed
At Oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe (t4cpreparedstatement.java:897) ~[ojdbc6.jar : 11.2.0.3.0]
At Oracle.jdbc.driver.OracleStatement.executeMaybeDescribe (oraclestatement.java:1167) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout (oraclestatement.java:1289) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.OraclePreparedStatement.executeInternal (oraclepreparedstatement.java:3594) ~[ojdbc6.jar : 11.2.0.3.0]
At Oracle.jdbc.driver.OraclePreparedStatement.execute (oraclepreparedstatement.java:3695) ~[ojdbc6.jar:11.2.0.3.0 ]
At Oracle.jdbc.driver.OraclePreparedStatementWrapper.execute (oraclepreparedstatementwrapper.java:1378) ~[ OJDBC6.JAR:11.2.0.3.0]
At Weblogic.jdbc.wrapper.PreparedStatement.execute (preparedstatement.java:101) ~[weblogic.server.merged.jar : 12.1.2.0.0]
At Sun.reflect.GeneratedMethodAccessor695.invoke (Unknown Source) ~[na:na]
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43) ~[na:1.7.0_40]
At Java.lang.reflect.Method.invoke (method.java:606) ~[na:1.7.0_40]
At Org.hibernate.engine.jdbc.internal.proxy.AbstractStatementProxyHandler.continueInvocation ( abstractstatementproxyhandler.java:122) ~[com.gg.top.thirdparty-hibernate-core-4.1.9.final.jar:4.1.9.final]
... Common frames omitted
caused By:java.net.SocketException:Socket closed
At java.net.SocketInputStream.socketRead0 (Native Method) ~[na:1.7.0_40]
At Java.net.SocketInputStream.read (socketinputstream.java:152) ~[na:1.7.0_40]
At Java.net.SocketInputStream.read (socketinputstream.java:122) ~[na:1.7.0_40]
At Oracle.net.ns.Packet.receive (packet.java:300) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.net.ns.DataPacket.receive (datapacket.java:106) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.net.ns.NetInputStream.getNextPacket (netinputstream.java:315) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.net.ns.NetInputStream.read (netinputstream.java:260) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.net.ns.NetInputStream.read (netinputstream.java:185) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.net.ns.NetInputStream.read (netinputstream.java:102) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket (t4csocketinputstreamwrapper.java:124) ~[ OJDBC6.JAR:11.2.0.3.0]
At Oracle.jdbc.driver.T4CSocketInputStreamWrapper.read (t4csocketinputstreamwrapper.java:80) ~[ojdbc6.jar : 11.2.0.3.0]
At Oracle.jdbc.driver.T4CMAREngine.unmarshalUB1 (t4cmarengine.java:1137) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4CTTIfun.receive (t4cttifun.java:290) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4CTTIfun.doRPC (t4cttifun.java:192) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4C8Oall.doOALL (t4c8oall.java:531) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4CPreparedStatement.doOall8 (t4cpreparedstatement.java:207) ~[ojdbc6.jar:11.2.0.3.0]
At Oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe (t4cpreparedstatement.java:884) ~[ojdbc6.jar : 11.2.0.3.0]
... Common frames omitted
Check the server log again to find out when the socket closed error is reported in Alllog:
####<2015-1-5 11:37 A.M. 22 sec cst> <Info> <JDBC> <scgg15140> <appServer> <[active] Executethread: ' 3 ' for queue: ' Weblogic.kernel.Default (self-tuning) ' > <<wls kernel>> <> <> & Lt;1420429042060> <BEA-001128> <Connection for Pool "Ggdatasource" have been closed.>
####<2015-1-5 11:38 A.M. 32 sec cst> <Info> <JDBC> <scgg15140> <appServer> <[active] Executethread: ' 3 ' for queue: ' Weblogic.kernel.Default (self-tuning) ' > <<wls kernel>> <> <> & Lt;1420429112057> <BEA-001128> <connection for Pool "Ggdatasource" have been closed.>
####<2015-1-5 11:38 A.M. 52 sec cst> <Info> <JDBC> <scgg15140> <appServer> <[active] Executethread: ' 1 ' for queue: ' Weblogic.kernel.Default (self-tuning) ' > <<wls kernel>> <> <> & Lt;1420429132057> <BEA-001128> <connection for Pool "Ggdatasource" have been closed.>
####<2015-1-5 11:51 A.M. 32 sec cst> <Info> <JDBC> <scgg15140> <appServer> <[active] Executethread: ' For queue: ' Weblogic.kernel.Default (self-tuning) ' > <<wls kernel>> <> <> <1420429892057> <BEA-001128> <connection for Pool "Ggdatasource" have been closed.>
Connection pooling is closed, there are two possible, one is the database problem, one is the network problems caused by the database is not connected.
Check the database again Alert.log, did not find an exception, the explanation is the network problem.
Java.sql.SQLRecoverableException:IO Error: Socket closed