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

Closed
Matheswaranm opened this issue Jul 1, 2014 · 1 comment
Milestone

Comments

@Matheswaranm
Copy link

@Matheswaranm Matheswaranm commented Jul 1, 2014

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

Java.lang.NullPointerException\n\tat org.jolokia.util.ServiceObjectFactory.readServiceDefinitions(ServiceObjectFactory.java:79)\n\tat org.jolokia.util.ServiceObjectFactory.createServiceObjects(ServiceObjectFactory.java:65)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.addSimplifiers(ObjectToJsonConverter.java:350)\n\tat org.jolokia.converter.json.ObjectToJsonConverter.(ObjectToJsonConverter.java:80)\n\tat org.jolokia.converter.Converters.(Converters.java:45)\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?

@rhuss
Copy link
Owner

@rhuss 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 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants