Skip to content
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

Getting NullPointerException when we load jolokia-jvm.jar through bootclasspath #154

Matheswaranm opened this issue Jul 1, 2014 · 1 comment


Copy link

I’m getting the below exception when we load jolokia-jvm.jar through bootclasspath

Java.lang.NullPointerException\n\tat org.jolokia.util.ServiceObjectFactory.readServiceDefinitions(\n\tat org.jolokia.util.ServiceObjectFactory.createServiceObjects(\n\tat org.jolokia.converter.json.ObjectToJsonConverter.addSimplifiers(\n\tat org.jolokia.converter.json.ObjectToJsonConverter.(\n\tat org.jolokia.converter.Converters.(\n\tat

In the Jolokia agent most of the places are using .class.getClassLoader() method for loading classes. As per the Java doc this method will return null in such implementations if this class was loaded by the bootstrap class loader.

Can you please look into this issue?

Copy link

rhuss commented Jul 1, 2014

You are absolutely right, Jolokia shouldn't rely to the getClassLoader() to be non-null.

'will fix this ASAP.

thanks for reporting ....

@rhuss rhuss closed this as completed in 271b5f7 Jul 1, 2014
@rhuss rhuss added this to the 1.3.0 milestone Jul 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants