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

Nullpointer exception caused by JbossClassLoaderHandler #81

Closed
msteur opened this issue Sep 19, 2016 · 3 comments
Closed

Nullpointer exception caused by JbossClassLoaderHandler #81

msteur opened this issue Sep 19, 2016 · 3 comments

Comments

@msteur
Copy link

msteur commented Sep 19, 2016

The path name for a resource loader is not always set .
This at least seems to be the case for build in modules like the jee libraries.
This occured on wildfly 10.0.0.Final.

Because of this, this line result in a null value:
final String pathElement = (String) ReflectionUtils.invokeMethod(root, "getPathName");
This results in a nullpointer exception later on when a new ClasspathRelativePath instance is created.

A simple null check before adding the class path element at least prevents the exception and allows it to scan my own code.

@lukehutch
Copy link
Member

Thanks for reporting this, and for backtracking back through the code to figure out where the problem was triggered -- great sleuthing!

This specific problem should be fixed in the head revision, please test and let me know if this is fixed for you, and go ahead and close the bug if it is fixed for you.

JBoss support is not thoroughly tested, so please report any additional problems you encounter. Thanks!

@msteur
Copy link
Author

msteur commented Sep 20, 2016

This seems to be working. Thanks for the quick fix!

@lukehutch
Copy link
Member

Released in version 2.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants