Error occurred during initialization of VM
java.lang.Error: java.lang.reflect.InvocationTargetException
at java.lang.ClassLoader.initSystemClassLoader(java.base@9/ClassLoader.java:1971)
at java.lang.System.initPhase3(java.base@9/System.java:2060)
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9/Native Method)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9/NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9/DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(java.base@9/Constructor.java:488)
at java.lang.ClassLoader.initSystemClassLoader(java.base@9/ClassLoader.java:1969)
at java.lang.System.initPhase3(java.base@9/System.java:2060)
Caused by: java.lang.InternalError: getSystemClassLoader should only be called after VM booted
at java.lang.ClassLoader.getSystemClassLoader(java.base@9/ClassLoader.java:1921)
at com.oracle.classloader.PolicyClassLoader.<init>(PolicyClassLoader.java:168)
at com.oracle.classloader.PolicyClassLoader.<init>(PolicyClassLoader.java:141)
at com.oracle.classloader.weblogic.LaunchClassLoader.<init>(LaunchClassLoader.java:36)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9/Native Method)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9/NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9/DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(java.base@9/Constructor.java:488)
at java.lang.ClassLoader.initSystemClassLoader(java.base@9/ClassLoader.java:1969)
at java.lang.System.initPhase3(java.base@9/System.java:2060)

REPRODUCIBILITY :
This bug can be reproduced always.

Attachments

Issue Links

relates to

JDK-8187222ClassLoader.getSystemClassLoader not clear if recursive initialization leads to ISE or unspecified error