United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6810893 JVM args always mismatch on Vista
JDK-6810893 : JVM args always mismatch on Vista

Details
Type:
Bug
Submit Date:
2009-02-27
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2009-05-13
Component:
deploy
OS:
windows_vista
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u14 (b04)

Related Reports
Relates:

Sub Tasks

Description
On Windows Vista, a JNLP applet is always "relaunched" due to mismatch JVM arguments although the applet didn't specify any new JVM arguments.

The "relaunch" has a side-effect of performing the following steps twice in the java plugin code which may have an impact on startup performance:
handleMessageStartApplet
StartAppletRunner
Plugin2Manager.start
AppletExecutionRunnable

                                    

Comments
EVALUATION

On windows Vista, the jvm arguments are being passed via the "-Dsun.plugin2.jvm.args" system property from the server side to the jp2launcher which launches the java.exe. 

During JVMParameters.parseFromSystemProperty, the following arguments are being added as trusted arguments although they should really be considered as internal.
-D__jvm_launched=12576220371 -Djava.class.path=D:\progra~1\java\jre6\classes

When searching for a jvm to launch the applet, the match always fails due to the presence of the above arguments and causing the client to send a message to the server to relaunch the applet.

A fix is to add another separator argument ("---") to separate the internal and trusted argument in additional to the existing separator argument ("--") which separates the trusted and other arguments. In parseFromSystemPropertyImpl, we don't add the internal ones to the args.
                                     
2009-02-27
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u14/6810893.0
                                     
2009-03-06



Hardware and Software, Engineered to Work Together