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

NPE in JarIndexWrapper if jar has no jar index.

    XMLWordPrintable

Details

    • b116
    • Verified

    Description

      This has been seen in all javaws applications - and likely applies to plugin as well. In JDK9 b113 client code you can get the following exception running a simple javaws app such as:
      http://oklahoma.us.oracle.com/www/tests/sandbox/hellos.jnlp

      java.lang.NullPointerException^M
              at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)^M
              at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)^M
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)^M
              at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)^M
              at com.sun.deploy.security.JarIndexWrapper.getJarFiles(jdk.deploy@9-internal/JarIndexWrapper.java:90)^M
              at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(jdk.deploy@9-internal/DeployURLClassPath.java:763)^M
              at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(jdk.deploy@9-internal/DeployURLClassPath.java:755)^M
              at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)^M
              at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(jdk.deploy@9-internal/DeployURLClassPath.java:754)^M
              at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(jdk.deploy@9-internal/DeployURLClassPath.java:743)^M
              at com.sun.deploy.security.DeployURLClassPath$3.run(jdk.deploy@9-internal/DeployURLClassPath.java:429)^M
              at com.sun.deploy.security.DeployURLClassPath$3.run(jdk.deploy@9-internal/DeployURLClassPath.java:419)^M
              at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)^M
              at com.sun.deploy.security.DeployURLClassPath.getLoader(jdk.deploy@9-internal/DeployURLClassPath.java:419)^M
              at com.sun.deploy.security.DeployURLClassPath.getLoader(jdk.deploy@9-internal/DeployURLClassPath.java:393)^M
              at com.sun.deploy.security.DeployURLClassPath.getResource(jdk.deploy@9-internal/DeployURLClassPath.java:251)^M
              at com.sun.deploy.security.DeployURLClassLoader$1.run(jdk.deploy@9-internal/DeployURLClassLoader.java:285)^M
              at com.sun.deploy.security.DeployURLClassLoader$1.run(jdk.deploy@9-internal/DeployURLClassLoader.java:282)^M
              at java.security.AccessController.doPrivileged(java.base@9-internal/Native Method)^M
              at com.sun.deploy.security.DeployURLClassLoader.findClass(jdk.deploy@9-internal/DeployURLClassLoader.java:281)^M
              at com.sun.jnlp.JNLPClassLoader.findClass(jdk.javaws@9-internal/JNLPClassLoader.java:372)^M
              at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:486)^M
              at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:473)^M
              at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)^M
              at com.sun.javaws.Launcher.doLaunchApp(jdk.javaws@9-internal/Launcher.java:1482)^M
              at com.sun.javaws.Launcher.run(jdk.javaws@9-internal/Launcher.java:164)^M
              at java.lang.Thread.run(java.base@9-internal/Thread.java:804)^M

      Attachments

        Issue Links

          Activity

            People

              herrick Andy Herrick (Inactive)
              herrick Andy Herrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: