IBM Support

java.lang.UnsupportedClassVersionError when starting JVM

Troubleshooting


Problem

java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/tivoli/maximo/report/birt/servlet/ReportWebAppStartupServlet, offset=6

Symptom

Unable to start JVM's on federated nodes.

Cause

This error occurs in clustered Maximo 7.6 environments, where extra nodes were manually created and federated to a DMGR that was created by the Maximo installer. The Maximo install sets and default Java version on the node it federates to a different version then if you installed a node separately and configured using the WebSphere tools and federated to the DMGR

Diagnosing The Problem

Review the WebSphere system out logs of the JVMs failing to start. This will likely only occur on separate nodes in your cluster that weren't installed with the Maximo tools and on the same node as the DMGR.

The logs will output a message similar to:

0000006c webapp E com.ibm.ws.webcontainer.webapp.WebApp commonInitializationFinish SRVE0266E: Error occured while initializing servlets: {0}
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/tivoli/maximo/report/birt/servlet/ReportWebAppStartupServlet, offset=6
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
     at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:856)
     at com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:764)
     at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:587)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:665)
     at java.lang.Class.forNameImpl(Native Method)
     at java.lang.Class.forName(Class.java:226)

Resolving The Problem

To resolve this issue ensure all your nodes have the same default version of JAVA. This is set in the WebSphere console.

Expand 'System Administration' and click on 'Nodes'. From here click on each node then 'Java SDK's' and ensure the nodes default value matches which the original node and DMGR.

 

WebSphere Node JDK Java 7 and 8

[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"ARM Category":[{"code":"a8m50000000CbCvAAK","label":"System->System Related"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6.0;7.6.1"}]

Document Information

Modified date:
17 February 2021

UID

swg21695559