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

java/nio/file/spi/SetDefaultProvider.java fails with modular image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9-repo-jigsaw
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      java/nio/file/spi/SetDefaultProvider.java

      This test fails with modular image:

      ----------System.err:(51/3169)----------
      Error: A JNI error has occurred, please check your installation and try again
      Exception in thread "main" java.lang.Error: java.lang.NullPointerException
      at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:128)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:89)
      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:98)
      at java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:96)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:96)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:90)
      at java.nio.file.FileSystems.getDefault(FileSystems.java:176)
      at java.io.File.toPath(File.java:2236)
      at jdk.internal.jimage.ImageReader.open(ImageReader.java:71)
      at sun.misc.JImageCache.get(JImageCache.java:74)
      at sun.misc.URLClassPath$JImageLoader.<init>(URLClassPath.java:1120)
      at sun.misc.URLClassPath$3.run(URLClassPath.java:373)
      at sun.misc.URLClassPath$3.run(URLClassPath.java:361)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:360)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:337)
      at sun.misc.URLClassPath.getResource(URLClassPath.java:203)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:426)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:359)
      at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:504)
      Caused by: java.lang.NullPointerException
      at java.io.File.toPath(File.java:2236)
      at jdk.internal.jimage.ImageReader.open(ImageReader.java:71)
      at sun.misc.JImageCache.get(JImageCache.java:74)
      at sun.misc.URLClassPath$JImageLoader.<init>(URLClassPath.java:1120)
      at sun.misc.URLClassPath$3.run(URLClassPath.java:373)
      at sun.misc.URLClassPath$3.run(URLClassPath.java:361)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:360)
      at sun.misc.URLClassPath.getLoader(URLClassPath.java:337)
      at sun.misc.URLClassPath.getResource(URLClassPath.java:203)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:426)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:359)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:346)
      at java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:118)
      ... 26 more

      java version "1.9.0-ea"
      Java(TM) SE Runtime Environment (build 1.9.0-ea-jigsaw-nightly-h1424-20141002-b34)
      Java HotSpot(TM) Server VM (build 1.9.0-ea-jigsaw-nightly-h1424-20141002-b34, mixed mode)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: