Stuck Thread at java.util.WeakHashMap.transfer and javax.crypto.JceSecurity.getCodeBase During JDBC connection (Doc ID 2117469.1)

Last updated on MARCH 17, 2016

Applies to:

JDBC - Version 11.2.0.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.4.0 version, Thin JDBC driver

Stuck thread prevents connection to be established when database is up and running and accepting other connections.

Stuck Thread :

"Thread-29" prio=10 tid=0x00007f648d3c2d70 nid=0x131b1 runnable [0x00007f62903c0000]
  java.lang.Thread.State: RUNNABLE
  at java.util.WeakHashMap.transfer(WeakHashMap.java:603)
  at java.util.WeakHashMap.resize(WeakHashMap.java:565)
  at java.util.WeakHashMap.put(WeakHashMap.java:534)
  at javax.crypto.JceSecurity.getCodeBase(JceSecurity.java:236)
  at javax.crypto.JceSecurityManager.getCryptoPermission(JceSecurityManager.java:107)
  at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2503)
  at javax.crypto.Cipher.initCryptoPermission(Cipher.java:685)
  at javax.crypto.Cipher.chooseProvider(Cipher.java:848)
  - locked (a java.lang.Object)
  at javax.crypto.Cipher.init(Cipher.java:1348)
  at javax.crypto.Cipher.init(Cipher.java:1282)
  at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source)
  at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
  at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
  at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:655)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
  at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:531)
  at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:221)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  at com.objectwave.persist.OracleRedundentConnection.connect(OracleRedundentConnection.java:176)


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