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?
to your account
Artem Bilan opened SPR-11721 and commented
The NPE is here:
ClassLoader cl = SpringProperties.class.getClassLoader();
URL url = cl.getResource(PROPERTIES_RESOURCE_LOCATION);
The similar issue is here: http://stackoverflow.com/questions/1921238/getclass-getclassloader-is-null-why
Affects: 3.2.8, 4.0.3
Reference URL: http://stackoverflow.com/questions/23228968
Backported to: 3.2.9
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
Indeed, getClassLoader() may return null for the bootstrap loader depending on the JVM. We're falling back to ClassLoader.getSystemResource(name) now, since even ClassLoader.getSystemClassLoader() may return null...
Sorry, something went wrong.
While being at it, I've updated all our classpath resource accessing spots with a fallback to the system ClassLoader or (if even that is null) to getSystemResource(s).
Artem, does this work for you now, against 4.0.4 and/or the latest 3.2.9 snapshot? What does your deployment layout actually look like there?
Artem Bilan commented
Thanks, Juergen, for your attention!
Spring Integration works well with those snapshots:
I can't say anything about that issue, because the original was from SO post. I mentioned there that you fixed it, but it is without feedback
No branches or pull requests