JDK-6888876 : improve error handling of webstart/plugin XML parser
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u18
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-10-06
  • Updated: 2013-11-01
  • Resolved: 2010-06-01
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.
6u21 b01Fixed 7Fixed
Related Reports
Duplicate :  
our XML parsing of JNLP files is not robust enough.  sometimes when JNLP files has syntax error, we did not report error and just ignore and continue.  instead, we should report error to user instead.

e.g  missing /> in <applet-desc> or <update>

see JIRA issue:  http://javafx-jira.kenai.com/browse/RT-4843

Our JNLP XML parser should be able to catch these error and report to user; instead of ignoring the error and continue to launch.

EVALUATION We will alert in the java console. The execution will not be stopped because there are existing malformed (jfx pacakge, and netbeans generated malformed jnlp files) jnlp files on the web. We don't want to them to stop work in 6u20.

EVALUATION for example, our XML parser should be able to detect error in this JNLP file: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://www.vancouver2010.com/ns/javafx/MedalVisualizer/" href="snowapp_browser.jnlp"> <information> <title>snowapp</title> <vendor>EffectiveUI</vendor> <homepage href=""/> <description>snowapp</description> <offline-allowed/> <shortcut> <desktop/> </shortcut> </information> <resources> <j2se version="1.5+"/> <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/> <jar href="snowapp.jar" main="true"/> <jar href="lib/json_simple-1.1.jar"/> </resources> <applet-desc name="snowapp" main-class="com.sun.javafx.runtime.adapter.Applet" width="990" height="600"> <param name="MainJavaFXScript" value="com.effectiveui.snow.Main"> </applet-desc> <update check="background"/> </jnlp> Problem is <param> is missing "/" in the end. We should detect this and print out alert.