JDK-6802069 : Issues with parsing of JNLP file under some scenarios while launching applets from desktop shortcut
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows,windows_xp
  • CPU: generic,x86
  • Submitted: 2009-02-05
  • Updated: 2010-09-08
  • Resolved: 2009-02-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u13 b02Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
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

Comments
EVALUATION JNLP2Viewer passed a null jnlpFile to JNLP2Manager. This caused JNLP2Manager try to parse the codebase document as a jnlp file.
05-02-2009