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

Details

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

    • b02
    • generic
    • generic

    Backports

      Description

        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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: