Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Jolokia 1.3.3 no longer work with Java 6 #249

@seboudry

Description

@seboudry

Hi !

I'm stuck with Java 6 on a legacy app and notice that new version 1.3.3 of Jolokia doesn't work on it.
It seems that a new dependency required a Java 7 class : java.lang.ReflectiveOperationException.
It appears with WAR and JVM agents.
Jolokia 1.3.2 is OK on Java 6.

I didn't found on the docs the required minimum Java version but for me a minor update don't have to force an upgrade of Java.

Here the full stacktrace :

 Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:325)
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.NoClassDefFoundError: java/lang/ReflectiveOperationException
    at org.jolokia.jvmagent.handler.JolokiaHttpHandler.start(JolokiaHttpHandler.java:105)
    at org.jolokia.jvmagent.handler.JolokiaHttpHandler.start(JolokiaHttpHandler.java:132)
    at org.jolokia.jvmagent.JolokiaServer.start(JolokiaServer.java:111)
    at org.jolokia.jvmagent.JvmAgent.startAgent(JvmAgent.java:89)
    at org.jolokia.jvmagent.JvmAgent.premain(JvmAgent.java:67)
    ... 6 more
Caused by: java.lang.ClassNotFoundException: java.lang.ReflectiveOperationException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 11 more

BTW, thanks for the job. Jolokia works like a charm !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions