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

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u25
    • Fix Version/s: 8u60
    • Component/s: deploy
    • Environment:

      seen with 8u40 and JDK9 - but likely in all modern releases on all platforms

    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic
    • OS:
      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

                • Assignee:
                  herrick Andy Herrick
                  Reporter:
                  herrick Andy Herrick
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: