APM Agent Error on Websphere server

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

Kibana version: 6.6
Elasticsearch version: 6.6
APM Server version:6.7

APM Agent language and version:1.5

Browser version:Chrome

Original install method (e.g. download page, yum, deb, from source, etc.) and version:

**Fresh install or upgraded from other version?**Fresh

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
We Logstash with FileBeat configured
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=co/elastic/apm/agent/bci/AgentMain, offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:273)
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 java.lang.ClassLoader.loadClassHelper(ClassLoader.java:701)
at java.lang.ClassLoader.loadClass(ClassLoader.java:680)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:663)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:292)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:350)

Fatal error: processing of -javaagent failed

Steps to reproduce:

  1. Add APM agent setting in JVM options websphere
  2. Start server

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=co/elastic/apm/agent/bci/AgentMain, offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:273)
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 java.lang.ClassLoader.loadClassHelper(ClassLoader.java:701)
at java.lang.ClassLoader.loadClass(ClassLoader.java:680)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:663)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:292)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:350)

Fatal error: processing of -javaagent failed

Hi and thanks for reaching out.
We currently don't support WebSphere application server and we only support Java 7 or higher - see our supported technologies page for more details.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.