Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8132459

ExceptionInInitializerError from 'java -version' under zh_CN.GB18030 locale

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Backports

        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)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sherman Xueming Shen
                  Reporter:
                  luchsh Jonathan Lu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: