Exception Loading Service class - remotejmx Unsupported major.minor version 51.0

book

Article ID: 220695

calendar_today

Updated On:

Products

CA Application Performance Management SaaS CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) DX APM SaaS DX Application Performance Management

Issue/Introduction

We are seeing the below error while we try to deploy Java agent. We see the application server has Java version 1.6 which is a  compatible version in the APM compatibility guide.

[WARN] [IntroscopeAgent.Agent] Exception Loading Service class - remotejmx
java.lang.UnsupportedClassVersionError: com/ca/apm/agent/remotejmx/RemoteJmxService : Unsupported major.minor version 51.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at com.wily.util.extension.JarExtension$AllPermissionsClassLoader.findUsingParent(JarExtension.java:354)
 at com.wily.util.extension.JarExtension$AllPermissionsClassLoader.findClass(JarExtension.java:299)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at com.wily.introscope.agent.service.ServiceAdministrator$ServiceInitializer.faultInClass(ServiceAdministrator.java:506)
 at com.wily.introscope.agent.service.ServiceAdministrator$ServiceInitializer.faultInService(ServiceAdministrator.java:523)
 at com.wily.introscope.agent.service.ServiceAdministrator$ServiceInitializer.startService(ServiceAdministrator.java:538)
 at com.wily.introscope.agent.service.ServiceAdministrator$ServiceInitializer.startServiceSafe(ServiceAdministrator.java:568)
 at com.wily.introscope.agent.service.ServiceAdministrator$ServiceInitializer.IExecutableItem_execute(ServiceAdministrator.java:432)
 at com.wily.util.task.AsynchExecutionQueue$WrapperItem.IExecutableItem_execute(AsynchExecutionQueue.java:414)
 at com.wily.util.task.AsynchExecutionQueue.doTask(AsynchExecutionQueue.java:205)
 at com.wily.util.task.ATask$CoreTask.run(ATask.java:132)
 at java.lang.Thread.run(Thread.java:662) 

Cause

The new JMX extension, jmx-tomcat-xt23-21.4.0.26 in this instance, requires Java 1.7 or later

Environment

Release : 20.2

Component :

Resolution

The legacy JMX support is still present so the solution is to use that and remove the jmx extension form the list of bundles deployed/enabled in the extensions.profile).

 For this specific situation delete the string 
 
jmx-tomcat-xt23-21.4.0.26,
 
from the property value for
 
introscope.agent.extensions.bundles.load