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

Issues with parsing of JNLP file under some scenarios while launching applets from desktop shortcut

    Details

    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic, x86
    • OS:
      windows, windows_xp

      Description

      Under some scenarios applet are not launched properly from desktop shortcut and following exception is getting thrown.
      MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
      at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
      at sun.plugin2.applet.viewer.JNLP2Viewer$1.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      Error while initializing manager: MissingFieldException[ The following required field is missing from the launch file: <jnlp>], bail out

      Steps to reproduce:
      ------------------
      1) Install 6u12
      2) Lauch an applets from following page
      https://jdk6.dev.java.net/plugin2/

      3)Under Experimental Functionality , try to drag the applet out of browser and click reload
      4) Propmt to create desktop shortcut should be there.
      5) "Yes" to shortcut creation , shorccut "Simple Draggable Applet Example" should get created on desktop.
      6) Try to click on shortcut and if above mentioned exception is thrown and applets fails to launch then bug is reproduced

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hdongorcl Hao Dong (Inactive)
                Reporter:
                jijising Jitender Singh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: