Agent running an unsupported Java release produces a JVMCFRE003 "bad major version" error.

book

Article ID: 6294

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Application does not start and the following error is written in the Agent log:

[ERROR] [IntroscopeAgent.Agent] Unexpected error loading extension
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/wily/introscope/agent/intelligent/entrypoint/tracers/AbstractDetectionHelperTracer, offset=6
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:538)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$300(URLClassLoader.java:77)
    at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1041)
    at java.security.AccessController.doPrivileged(AccessController.java:488)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:427)
    at com.wily.util.extension.JarExtension$AllPermissionsClassLoader.findClass(JarExtension.java:279)
    at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:701)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:680)
    at com.wily.util.extension.EagerAllPermissionsClassLoader.loadClass(EagerAllPermissionsClassLoader.java:115)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:663)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:288)
    at com.wily.util.extension.EagerAllPermissionsClassLoader.loadListOfForcedClassNames(EagerAllPermissionsClassLoader.java:206)
    at com.wily.util.extension.EagerAllPermissionsClassLoader.preLoadClasses(EagerAllPermissionsClassLoader.java:95)
    at com.wily.util.extension.JarExtension.createEagerClassLoader(JarExtension.java:237)
    at com.wily.util.extension.JarExtension.IExtension_setParentClassLoader(JarExtension.java:400)
    at com.wily.util.extension.JarExtensionProxy.IExtensionProxy_newInstance(JarExtensionProxy.java:126)
    at com.wily.util.extension.ExtensionBroker.loadExtension(ExtensionBroker.java:312)
    at com.wily.util.extension.ExtensionBroker.loadExtensionsFromProxies(ExtensionBroker.java:300)
    at com.wily.util.extension.ExtensionBroker.locateAndLoadExtensions(ExtensionBroker.java:251)
    at com.wily.util.extension.ExtensionBroker.loadExtensions(ExtensionBroker.java:95)
    at com.wily.introscope.agent.extension.ExtensionAdministrator.initialLoadExtensions(ExtensionAdministrator.java:174)
    at com.wily.introscope.agent.enterprise.EnterpriseAgent.<init>(EnterpriseAgent.java:283)
    at com.wily.introscope.agent.enterprise.EnterpriseAgent.<init>(EnterpriseAgent.java:262)
    at com.wily.introscope.agent.runtime.java.enterprise.Java2EnterpriseAgent.<init>(Java2EnterpriseAgent.java:44)
    at com.wily.introscope.agent.runtime.NativeConcreteAgentFactory.newConcreteAgent(NativeConcreteAgentFactory.java:16)
    at com.wily.introscope.agent.AgentShim.doCreateDelegate(AgentShim.java:617)
    at com.wily.introscope.agent.AgentShim.createDelegate(AgentShim.java:532)
    at com.wily.introscope.agent.AgentShim.getDelegateAgent(AgentShim.java:503)
    at com.wily.introscope.agent.AgentShim.ProbeBuilderEntryPoint_initializeAgentShim(AgentShim.java:966)
    at com.wily.introscope.api.instrument.JavaAgent.initializeAgent(JavaAgent.java:313)
    at com.wily.introscope.api.instrument.JavaAgent.premain(JavaAgent.java:198)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:335)
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:350)

Cause


We do not support IBM JDK 1.6 when using Agent 10.5.1 except when monitoring Oracle Weblogic using 11G onward.
The Agent classes are seeing a conflict with the JRE.  The problem is that the classes in the Agent application are complied with a later version that the JRE runs with.

Environment

Any application being monitored except Oracle Weblogic using 11G onward.Java Agent 10.5.1.JVM 1.6.

Resolution

Option 1:

Try to upgrade your JVM release to at least 1.7.

Option 2:

Try to downgrade the Agent release being monitored.

 

See the Compatibility Guide for more information. Links are given below for access to the Compatibility Guide for your particular APM Agent version

Additional Information

A webpage from IBM with more information about this Java error

DE241272:[ERROR] [IntroscopeAgent.Agent] Unexpected error loading extension