My Oracle Support Banner

Java.lang.SecurityException: SHA-256 Digest Error For Oracle/security/o5logon/O5Logon.class After Applying Patches 26675580 and 26933408 on JDBC 12.1.0.2 (Doc ID 2683573.1)

Last updated on OCTOBER 28, 2021

Applies to:

JDBC - Version 12.1.0.2.0 to 12.1.0.2.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms


After applying <Patch:26933408> on top of an 12.1.0.2 ojdbc6.jar with <Patch:26675580>, JDBC program fails with:

Exception in thread "main" java.lang.SecurityException: SHA-256 digest error for oracle/security/o5logon/O5Logon.class
  at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:218)
  at java.util.jar.JarVerifier.processEntry(JarVerifier.java:241)
  at java.util.jar.JarVerifier.update(JarVerifier.java:228)
  at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:482)
  at sun.misc.Resource.getBytes(Resource.java:124)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  at oracle.jdbc.driver.T4C8TTIdty.(T4C8TTIdty.java:513)
  at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1603)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)
  at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:662)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:560)
 

ERROR
-----------------------

java.lang.SecurityException: SHA-256 digest error for oracle/security/o5logon/O5Logon.class





Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.