JDK-8132459 : ExceptionInInitializerError from 'java -version' under zh_CN.GB18030 locale
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2015-07-28
  • Updated: 2015-09-10
  • Resolved: 2015-07-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b76Fixed
Related Reports
Duplicate :  
Description
Command to reproduce:
LANG=zh_CN.GB18030 java -version

Error message:
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.isDirectory(File.java:849)
	at sun.misc.Launcher$BootClassPathHolder$1.run(Launcher.java:329)
	at sun.misc.Launcher$BootClassPathHolder$1.run(Launcher.java:316)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.misc.Launcher$BootClassPathHolder.<clinit>(Launcher.java:315)
	at sun.misc.Launcher.<clinit>(Launcher.java:60)
	at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1443)
	at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1428)
Caused by: java.lang.NullPointerException
	at java.lang.ClassLoader.getBootstrapResources(ClassLoader.java:1267)
	at java.lang.ClassLoader.getSystemResources(ClassLoader.java:1246)
	at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:344)
	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.isDirectory(File.java:849)
	at sun.misc.Launcher$BootClassPathHolder$1.run(Launcher.java:329)
	at sun.misc.Launcher$BootClassPathHolder$1.run(Launcher.java:316)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.misc.Launcher$BootClassPathHolder.<clinit>(Launcher.java:315)
	at sun.misc.Launcher.<clinit>(Launcher.java:60)
	at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1443)
	at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1428)

Comments
to add gb18030 and several encoding into std charsets for linux and solaris platform
30-07-2015

The network was very slow, I tried several times but failed to create the bug, thus at last submitted a bug with minimal information, sorry for the misunderstanding, I meant to do the update asap.
28-07-2015

The description on this issue is empty, can you post more information as to what this issue is about?
28-07-2015