When Attempting to Deployed a Customized Process Extension (PX) jar into \Agile\Agile93\integration\sdk\extensions, the Following Error Occurs: "java.lang.UnsupportedClassVersionError: Bad version number in .class file" (Doc ID 1481516.1)

Last updated on JUNE 25, 2017

Applies to:

Oracle Agile PLM Framework - Version 9.3.0.0 to 9.3.0.2 [Release 9.3]
Information in this document applies to any platform.

Symptoms

On : 9.3.0.0 version, Process Extension

When attempting to deployed customized PX jar into \Agile\Agile93\integration\sdk\extensions,
the following error occurs.

ERROR
-----------------------
2/07/16 07:12:47 java.lang.UnsupportedClassVersionError: Bad version number in .class file
12/07/16 07:12:47 at java.lang.ClassLoader.defineClass1(Native Method)
12/07/16 07:12:47 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
12/07/16 07:12:47 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
12/07/16 07:12:47 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
12/07/16 07:12:47 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
12/07/16 07:12:47 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
12/07/16 07:12:47 at java.security.AccessController.doPrivileged(Native Method)
12/07/16 07:12:47 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
12/07/16 07:12:47 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
12/07/16 07:12:47 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
12/07/16 07:12:47 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
12/07/16 07:12:47 at java.lang.Class.forName0(Native Method)
12/07/16 07:12:47 at java.lang.Class.forName(Class.java:242)
12/07/16 07:12:47 at com.agile.px.Extensions2.getClassInstance(Extensions2.java:437)
12/07/16 07:12:47 at com.agile.px.Extensions2.discoverNames(Extensions2.java:416)
12/07/16 07:12:47 at com.agile.px.Extensions2.discoverExtensions(Extensions2.java:114)
12/07/16 07:12:47 at com.agile.px.PxSessionBean.discoverExtensionNames(PxSessionBean.java:76)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Compile the customized PX source code and package to jar with java 1.6.0
2. Copy the jar to \Agile\Agile93\integration\sdk\extensions,
3. Log into Java Client and go to Event Handler, click New, no PX class name popup. Check opmn log, found error

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