Duplicate :
|
|
Duplicate :
|
|
Relates :
|
See JDK-8081674 to reproduce this issue: Error occurred during initialization of VM java.lang.ExceptionInInitializerError at java.nio.charset.Charset.lookupExtendedCharset(Charset.java:449) at java.nio.charset.Charset.lookup2(Charset.java:479) at java.nio.charset.Charset.lookup(Charset.java:467) at java.nio.charset.Charset.isSupported(Charset.java:508) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242) at java.io.File.exists(File.java:819) at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:152) at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:144) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.Launcher$ExtClassLoader.getExtClassLoader(Launcher.java:143) at sun.misc.Launcher.<init>(Launcher.java:76) at sun.misc.Launcher.<clinit>(Launcher.java:64) at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1443) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1428) Caused by: java.lang.NullPointerException at java.nio.charset.Charset.lookupExtendedCharset(Charset.java:450) at java.nio.charset.Charset.lookup2(Charset.java:479) at java.nio.charset.Charset.lookup(Charset.java:467) at java.nio.charset.Charset.isSupported(Charset.java:508) at java.io.UnixFileSystem.canonicalize0(Native Method) at java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:172) at java.io.File.getCanonicalPath(File.java:618) at java.io.File.getCanonicalFile(File.java:643) at sun.misc.URLClassPath$JImageLoader.<init>(URLClassPath.java:1135) at sun.misc.URLClassPath$3.run(URLClassPath.java:389) at sun.misc.URLClassPath$3.run(URLClassPath.java:377) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.URLClassPath.getLoader(URLClassPath.java:376) at sun.misc.URLClassPath.getLoader(URLClassPath.java:353) at sun.misc.URLClassPath.access$000(URLClassPath.java:80) at sun.misc.URLClassPath$2.next(URLClassPath.java:293) at sun.misc.URLClassPath$2.hasMoreElements(URLClassPath.java:304) at java.lang.ClassLoader$2.hasMoreElements(ClassLoader.java:1273) at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:352) at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:391) at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:472) at java.nio.charset.Charset$ExtendedProviderHolder$1.run(Charset.java:435) at java.nio.charset.Charset$ExtendedProviderHolder$1.run(Charset.java:429) at java.security.AccessController.doPrivileged(Native Method) at java.nio.charset.Charset$ExtendedProviderHolder.extendedProviders(Charset.java:429) at java.nio.charset.Charset$ExtendedProviderHolder.<clinit>(Charset.java:426) at java.nio.charset.Charset.lookupExtendedCharset(Charset.java:449) at java.nio.charset.Charset.lookup2(Charset.java:479) at java.nio.charset.Charset.lookup(Charset.java:467) at java.nio.charset.Charset.isSupported(Charset.java:508) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242) at java.io.File.exists(File.java:819) at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:152) at sun.misc.Launcher$ExtClassLoader$1.run(Launcher.java:144) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.Launcher$ExtClassLoader.getExtClassLoader(Launcher.java:143) at sun.misc.Launcher.<init>(Launcher.java:76) at sun.misc.Launcher.<clinit>(Launcher.java:64) at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1443) at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1428)