I'm using openjdk - jre14. But, when I use jmx exporter (0.15.0)  I get the 
following exception 

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown 
Source)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown
 
Source)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown
 
Source)
Caused by: java.lang.NoClassDefFoundError: 
com/sun/net/httpserver/HttpHandler
        at 
io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: 
com.sun.net.httpserver.HttpHandler
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown 
Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 7 more
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent 
load/premain call failed at JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, 
processJavaStart failed

Do I need to get bundle com/sun/net/httpserver with the application.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/897b7deb-7cf6-42ac-9d25-07375e5ea195n%40googlegroups.com.

Reply via email to