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

NPE (instead of proper error dialog) thrown when some jnlp files have no resources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u60
    • 8u25
    • deploy
    • seen with 8u40 and JDK9 - but likely in all modern releases on all platforms

    • b02
    • generic
    • generic

        It was discovered by accident when testing AMC that a jnlp file without any resources will throw a NPE instead of a LaunchError dialog when it is run thru javaws using the AppletLifecycle path (fx app or applet).

        A jnlp file (other than a component-extension) must have at least some resources (either a <jar> element or a library extension that has (recursivly) at least one <jar> element. The correct error dialog is shown when the jnlp file is an application-desc, but when it is not, an NPE is thrown:
        java.lang.NullPointerException
            at com.sun.javaws.jnl.LaunchDesc.getAppInfo(Unknown Source)
            at sun.plugin2.applet.JNLP2Manager.getAppInfo(Unknown Source)
            at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:745)

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

                Created:
                Updated:
                Resolved: