我们正在使用Wildfly8.2服务器。 Wildfly服务器管理的数据库连接池在数据库服务器无效连接后无法重新连接(或重新生成有效/受管连接池)。 请参阅以下错误:
2016-05-03 11:35:43,662 WARN [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (NRG) IJ000305: Connection error occured: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@231fd521[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@7ea688d0 connection handles=1 lastUse=1462286812044 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@794f665c mcp=SemaphoreArrayListManagedConnectionPool@43e70a99[pool=DSNAME] xaResource=LocalXAResourceImpl@7482a7a7[connectionListener=231fd521 connectionManager=3d2232ff warned=false currentXid=null productName=Oracle productVersion=Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options jndiName=java:jboss/DSNAME] txSync=null]: javax.resource.spi.ResourceAdapterInternalException: Unexpected error<br>
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:644)<br>
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.connectionError(BaseWrapperManagedConnection.java:610)<br>
at org.jboss.jca.adapters.jdbc.WrappedConnection.checkException(WrappedConnection.java:1640)
at org.jboss.jca.adapters.jdbc.WrappedStatement.checkException(WrappedStatement.java:1267)<br>
at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:467)
at com.abc.app.beans.ReconcileInfo.getNextMessage(ReconcileInfo.java:412) [classes:]
at com.abc.app.beans.GroupInfo.sendMessage(GroupInfo.java:819) [classes:]<br>
at com.abc.app.app.GroupSendThread.send(GroupSendThread.java:112) <br>[classes:]
at com.ctsu.rdts.app.GroupSendThread.run(GroupSendThread.java:66) [classes:]
Caused by: java.lang.ThreadDeath<br>
at java.lang.Thread.stop(Thread.java:850) [rt.jar:1.8.0_31]
at com.abc.app.app.HttpDequeue.stopThread(HttpDequeue.java:876) [classes:]
at com.abc.app.app.HttpDequeue.clearLocks(HttpDequeue.java:397) [classes:]
at com.abc.app.app.HttpDequeue.run(HttpDequeue.java:383) [classes:]