In JRE 6 update 2, php generated <argument> does not work in a jnlp file

When we generate jnlp file through PHP, it is generally because we need to change something dynamically - no need to use php if the jnlp file is unchanged for all services.

(In Windows PC) if one install Java 6 update 2 and the application uses a php generated jnlp (in my case, linux server), the php-generated arguments are not submitted into an java application, which was, of course, .complied with Java SE DK 6 update 2.

Thus any application using dynamically changed arguments (php) is no longer usable now.

This feature is so elementary and important, and was not problem until Java 6 update 1. It is urgent to fix this bug as soon as possible.

for example, in following jnlp file,

...

<argument>1234</argument>

<argument><?php echo("5678");?></argument>

only '1234' is inserted as the arguments of main(), and the second one, php generated argument, is ignored in a PC with java 6 update 2 (at least in Windows XP/Vista).

I have tested both firefox and IE7 in Windows XP, and IE7 in Windows Vista, the results are all the same.

Especially in firefox, one can download the Jnlp file (instead of running with the application). When I look inside of the jnlp file (generated with PHP), the content was not empty, it is exactly what i wanted to hand over to main() as arguments, but once it is dynamically generated, those arguments are ignored in 1.6.2.

I have sent above bug report to sun,com at last weekend, but there is no response yet.

Has anyone experienced similar problem with java 6 update 2?

[1603 byte] By [harnoncourta] at [2007-11-27 11:45:59]
# 1

As PHP (or JSP, or ASP) is processed before a result is even sent to the client, it is impossible for Java WebStart to react differently to hardcoded and generated arguments. Perhaps there is a typo or XSD violation in your JNLP file that previous versions accepted, but this latest version doesn't?

Herko_ter_Horsta at 2007-7-29 18:04:58 > top of Java-index,Desktop,Deploying...
# 2

I would be happy (though feel foolish), if it is due to simple typo error or XSD violation. There was no such errors.

A funny thing is that if i make a typo error on purpose, for example

<argument><?php echo(">1234");</argument>

, which will be read as <argument>>1234</argument> (with double >>),

the application correctly report an error messages, showing the generated argument (1234 in this case) in the detailed error report.

I guess this bug is due to some error in JRE 6 update 2, may be connected to the bug report '6465756 javawebstart jnlp_file cannot use CDATA xml tag within the jnlp <argument> tag '.

see:

http://java.sun.com/javase/6/webnotes/ReleaseNotes.html

and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6465756

harnoncourta at 2007-7-29 18:04:58 > top of Java-index,Desktop,Deploying...