JDK-6465756 : cannot use CDATA xml tag within the jnlp tag
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-30
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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.
Other JDK 6 JDK 7
1.4.2_21Fixed 6u2Fixed 7 b13Fixed
Description
if we put CDATA xml information within the jnlp <argument> tag, application cannot be launched and exception will be thrown:

We tried to enclose the CDATA (because we are trying to put a XML string inside an XML string) and we are getting exception from Webstart:

BadFieldException[ The field <argument> has an invalid value: ,]
	at com.sun.javaws.jnl.XMLFormat$9.visitElement(Unknown Source)
	at com.sun.javaws.jnl.XMLUtils.visitElements(Unknown Source)
	at com.sun.javaws.jnl.XMLFormat.buildApplicationDesc(Unknown Source)
	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.Main.launchApp(Unknown Source)
	at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
	at com.sun.javaws.Main$1.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

See below for the content inside the <argument> tag:
		<argument><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
            <java version="1.5.0_04" class="java.beans.XMLDecoder"> <int>1</int></java>]]></argument>

Comments
EVALUATION we failed to escape the CDATA xml tag in within the <argument> tag correctly. fix in 6u1 and 5u10
30-08-2006