ORA-29532: Java Call Terminated By Uncaught Java Exception: java.lang.NoClassDefFoundError Using ' javax.crypto.Cipher' Class After Upgrade to 11.2

(Doc ID 1364109.1)

Last updated on AUGUST 30, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 and later
Information in this document applies to any platform.

*** Checked for relevance on 30-Aug-2017 ***

Symptoms

Executing a Java Stored Procedure after an upgrade to 11g fails with:

ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

executing the following line of code:

conn = DriverManager.getConnection

Detailed Stack Trace:

Exception in thread "Root Thread" java.lang.NoClassDefFoundError
at javax.crypto.Cipher.getInstance(DashoA12275)
at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source)
at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(DriverManager.java)
at java.sql.DriverManager.getConnection(DriverManager.java)
at sysdatestoredproc.getdate(sysdatestoredproc.java:16)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
... 12 more
Caused by: java.security.PrivilegedActionException: javax.crypto.SunJCE_k: Cannot call the constructor of javax.crypto.spec.RC2ParameterSpecjava.lang.ClassNotFoundException
at java.security.AccessController.doPrivileged(Native Method)
... 13 more
Caused by: javax.crypto.SunJCE_k: Cannot call the constructor of javax.crypto.spec.RC2ParameterSpecjava.lang.ClassNotFoundException
at javax.crypto.SunJCE_i.a(DashoA12275)
at javax.crypto.SunJCE_i.b(DashoA12275)
at javax.crypto.SunJCE_i.a(DashoA12275)
at javax.crypto.SunJCE_i.a(DashoA12275)
at javax.crypto.SunJCE_h.a(DashoA12275)
at javax.crypto.SunJCE_b.a(DashoA12275)
at javax.crypto.SunJCE_b.g(DashoA12275)
at javax.crypto.SunJCE_b.e(DashoA12275)
at javax.crypto.SunJCE_q.run(DashoA12275)
... 14 more ILE:35)

Changes

Upgrade from 10g to 11.2.

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