OPatch : Patching fails with error – Bad version number in .class file (Doc ID 2301950.1)

Last updated on SEPTEMBER 04, 2017

Applies to:

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

Symptoms

Applying windows BP fails with the below error

[Aug 9, 2017 5:37:05 AM] [INFO] Backing up files affected by the patch ‘25632525’ for rollback. This might take a while…
[Aug 9, 2017 5:37:05 AM] [WARNING] OUI-67124:ApplySession failed but Oracle Home has not been modified.Bad version number in .class file
[Aug 9, 2017 5:37:06 AM] [SEVERE] OUI-67073:UtilSession failed: ApplySession failed but Oracle Home has not been modified.Bad version number in .class file
[Aug 9, 2017 5:37:06 AM] [INFO] ——————————————————————————–
[Aug 9, 2017 5:37:06 AM] [INFO] The following warnings have occurred during OPatch execution:
[Aug 9, 2017 5:37:06 AM] [INFO] 1) OUI-67124:ApplySession failed but Oracle Home has not been modified.Bad version number in .class file
[Aug 9, 2017 5:37:06 AM] [INFO] ——————————————————————————–
[Aug 9, 2017 5:37:06 AM] [INFO] Finishing UtilSession at Wed Aug 09 05:37:06 EDT 2017
[Aug 9, 2017 5:37:06 AM] [INFO] Log file location: D:\oracle2\product\root6\cfgtoollogs\opatch\opatch2017-08-09_05-36-40AM_1.log
[Aug 9, 2017 5:37:06 AM] [INFO] Stack Description: java.lang.RuntimeException: ApplySession failed but Oracle Home has not been modified.Bad version number in .class file
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.ClassLoader.defineClass1(Native Method)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.ClassLoader.defineClass(ClassLoader.java:621)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.security.AccessController.doPrivileged(Native Method)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.opatchutil.DeltaFileProcessor.compareHash(DeltaFileProcessor.java:88)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.CopyAction.backupForRollback(CopyAction.java:1114)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.CopyAction.backupForRollback(CopyAction.java:1000)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.PatchObject.backupForRollback(PatchObject.java:4844)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.ApplySession.processLocal(ApplySession.java:4288)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5390)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5253)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.OPatchACL.processApply(OPatchACL.java:310)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:1315)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:347)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.process(NApply.java:335)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1102)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: java.lang.reflect.Method.invoke(Method.java:592)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:352)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.OPatchSession.process(OPatchSession.java:2537)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.OPatch.process(OPatch.java:821)
[Aug 9, 2017 5:37:06 AM] [INFO] StackTrace: oracle.opatch.OPatch.main(OPatch.java:871)

 

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