ClassLoader.loadLibrary NullPointerException Regression in 8u242

Chris Smith chris.smith at zocdoc.com
Sat Jan 25 22:37:26 UTC 2020


I'm hitting a regression in 8u242b08 in the ClassLoader that wasn't in
8u232b09


Caused by: java.lang.NullPointerException
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
    at java.lang.Runtime.loadLibrary0(Runtime.java:871)
    at java.lang.System.loadLibrary(System.java:1124)
    at sun.net.ExtendedOptionsImpl.lambda$static$0(ExtendedOptionsImpl.java:48)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.ExtendedOptionsImpl.<clinit>(ExtendedOptionsImpl.java:47)


I believe the issue was introduced here and released in 8u242
https://bugs.openjdk.java.net/browse/JDK-8231584
https://github.com/openjdk/jdk/commit/4b7bbaf5b001c17e3bcd8d8ec7e4cb2d66e795e5


And potentially resolved here, though I'm not setup to verify this.
https://bugs.openjdk.java.net/browse/JDK-8236075
https://github.com/openjdk/jdk/commit/c639682887a83b98469ad1378de6a0db84b87c9f


I can reproduce the error running both adoptopenjdk and Amazon's Corretto
release where I provided some more information
https://github.com/corretto/corretto-8/issues/212

Please let me know if I can provide any more information that would be
helpful.

Chris


More information about the jdk8u-dev mailing list