United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6465756 cannot use CDATA xml tag within the jnlp <argument> tag
JDK-6465756 : cannot use CDATA xml tag within the jnlp tag

Details
Type:
Bug
Submit Date:
2006-08-30
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
deploy
OS:
generic
Sub-Component:
webstart
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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
                                     
2006-08-30



Hardware and Software, Engineered to Work Together