Timeout of Implicit Connection Cache Causes Deadlock (Doc ID 730096.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version 10.1.0.5 to 11.1.0.7 [Release 10.1 to 11.1]
Oracle Containers for J2EE - Version 10.1.3.3.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to access an application using the JDBC thin driver with Oracle Application Server 10.1.3.x the following deadlock error occurs.

Found one Java-level deadlock:
=============================
"Thread-10":
  waiting to lock monitor 0x0a1a0784 (object 0x7998c790, a oracle.jdbc.driver.LogicalConnection),
  which is held by "AJPRequestHandler-RMICallHandler-13"
"AJPRequestHandler-RMICallHandler-13":
  waiting to lock monitor 0x0888cff4 (object 0x71cfdc68, a oracle.jdbc.pool.OracleImplicitConnectionCache),
  which is held by "Thread-10"

Java stack information for the threads listed above:
===================================================
"Thread-10":
at oracle.jdbc.driver.LogicalConnection.cleanupAndClose(LogicalConnection.java:266)
- waiting to lock <0x7998c790> (a oracle.jdbc.driver.LogicalConnection)
at oracle.jdbc.pool.OracleImplicitConnectionCache.closeCheckedOutConnection(OracleImplicitConnectionCache.java:1503)
at oracle.jdbc.pool.OracleImplicitConnectionCacheThread.runAbandonedTimeout(OracleImplicitConnectionCacheThread.java:258)
- locked <0x71cfdc68> (a oracle.jdbc.pool.OracleImplicitConnectionCache)
at oracle.jdbc.pool.OracleImplicitConnectionCacheThread.run(OracleImplicitConnectionCacheThread.java:81)
"AJPRequestHandler-RMICallHandler-13":
at oracle.jdbc.pool.OracleImplicitConnectionCache.reusePooledConnection(OracleImplicitConnectionCache.java:1783)
- waiting to lock <0x71cfdc68> (a oracle.jdbc.pool.OracleImplicitConnectionCache)
at oracle.jdbc.pool.OracleConnectionCacheEventListener.connectionClosed(OracleConnectionCacheEventListener.java:71)
- locked <0x7862b358> (a oracle.jdbc.pool.OracleConnectionCacheEventListener)
at oracle.jdbc.pool.OraclePooledConnection.callImplicitCacheListener(OraclePooledConnection.java:550)
at oracle.jdbc.pool.OraclePooledConnection.logicalCloseForImplicitConnectionCache(OraclePooledConnection.java:465)
at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnection.java:481)
at oracle.jdbc.driver.LogicalConnection.closeInternal(LogicalConnection.java:243)
at oracle.jdbc.driver.LogicalConnection.close(LogicalConnection.java:214)
- locked <0x7998c790> (a oracle.jdbc.driver.LogicalConnection)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms