United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6802069 Issues with parsing of JNLP file under some scenarios while launching applets from desktop shortcut
JDK-6802069 : Issues with parsing of JNLP file under some scenarios while launching applets from desktop shortcut

Details
Type:
Bug
Submit Date:
2009-02-05
Status:
Resolved
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2009-02-25
Component:
deploy
OS:
windows_xp,windows
Sub-Component:
plugin
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u12
Fixed Versions:
6u13 (b02)

Related Reports
Duplicate:
Relates:
Relates:

Sub Tasks

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.
                                     
2009-02-05



Hardware and Software, Engineered to Work Together