New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: clojure/lang/ITransientMap #5
Comments
What does |
hi, thanks for replying... ./lein --version yes i m running against riemann. i already have the riemann dashboard up .. i build the uberjar as per the instructions. |
I only ask because the typical use case is to run riemann-jvm-profiler as the profiler in the client application you want to profile. If you apply the -javaagent JVM option to your Riemann server that means you are profiling Riemann itself rather than your client application. You only need the riemann-jvm-profiler-0.1.0-standalone.jar in your classpath, not both. Does that resolve your issue? If not, by what mechanism are you including the jar in your classpath? Can you share the entire java command being issued? |
No i m using the jvm-profiler to profile another application . for testing right now , i m using a sample java application that i m profiling. Thanks for that suggestion , i placed only the standalone jar and got the same error. the command i used java -javaagent:'riemann-jvm-profiler-master/target/riemann-jvm-profiler-0.1.0-standalone.jar=host=localhost' Test |
Try without the single quotes
|
sry i got same error java -javaagent:riemann-jvm-profiler-master/target/riemann-jvm-profiler-0.1.0.jar=host=localhost Test |
Sorry, you want to use the standalone jar --
|
nope didnt work - https://gist.github.com/kamaldeep-ebay/934b7ff2bef31046987f |
@kamaldeep-ebay I had the same error as you did. To fix it, you either have to switch to java 7 or include the |
when i tried to start riemann got the following error in main class . confirmed that the jar
riemann-jvm-profiler-0.1.0-standalone.jar
riemann-jvm-profiler-0.1.0.jar
are in classpath
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/ITransientMap
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2484)
at java.lang.Class.getMethod0(Class.java:2727)
at java.lang.Class.getMethod(Class.java:1639)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:294)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.ClassNotFoundException: clojure.lang.ITransientMap
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)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Abort trap: 6
The text was updated successfully, but these errors were encountered: