问题描述
[06-2403:24:18,082]INFO[Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@6680e836]STDOUT.log(161)|03:24:18,081WARN[BasicResourcePool]com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1f16577f--AcquisitionAttemptFailed!!!Clearingpendingacquires.Whiletryingtoacquireaneedednewresource,wefailedtosucceedmorethanthemaximumnumberofallowedacquisitionattempts(30).Lastacquisitionattemptexception:java.sql.SQLException:Io异常:TheNetworkAdaptercouldnotestablishtheconnectionatoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:147)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:257)atoracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:389)atoracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:454)atoracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)atoracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802)atcom.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:119)atcom.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:143)atcom.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:132)atcom.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)atcom.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)atcom.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)atcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)atcom.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)[06-2403:24:18,081]WARN[Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@6680e836]BasicResourcePool.run(1841)|com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1f16577f--AcquisitionAttemptFailed!!!Clearingpendingacquires.Whiletryingtoacquireaneedednewresource,wefailedtosucceedmorethanthemaximumnumberofallowedacquisitionattempts(30).Lastacquisitionattemptexception:java.sql.SQLException:Io异常:TheNetworkAdaptercouldnotestablishtheconnectionatoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:147)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:257)atoracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:389)atoracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:454)atoracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)atoracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802)atcom.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:119)atcom.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:143)atcom.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:132)atcom.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)atcom.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)atcom.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)atcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)atcom.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)急速能看看什么错误么在线等
解决方案
解决方案二:
oracle驱动版本不对?
解决方案三:
1.首先看看你的服务是否启动。2.查看一下你的jar包是否有问题3.然后看看你的oracle的驱动是否正常加载还不行就去百度查询TheNetworkAdaptercouldnotestablishtheconnection这个错