United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6721549 deployment.properties doesn't get refreshed correctly under some downgrade install scenario
JDK-6721549 : deployment.properties doesn't get refreshed correctly under some downgrade install scenario

Details
Type:
Bug
Submit Date:
2008-07-02
Status:
Resolved
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-09-04
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b31)

Related Reports
Relates:

Sub Tasks

Description
On some systems the applet loads with previous version of JRE after
following below steps. 

Steps:
------

  - Static install 6u11
  - Family Install 6u10
  - Launch an Applet
http://sqindia.india.sun.com/disk17/deployment/rakesh/pip/ssv/Clock.html

A security dialog "Java Security Warning" is shown, mentioning that
Applet wants to be executed on 6u10 (screenshot attached). Click "Run"
applet is launched with 6u10.

Applet tag doesn't explicitly request 6u10, hence the expected behavior is that
that applet must always be launched with 6u11.

                                    

Comments
WORK AROUND

remove/rename the deployment.properties file and then
run the java control panel to re-generate a new deployment.properties file.
                                     
2008-07-02
EVALUATION

The problem isn't reproducible on another XP machine with the following 6u10 b27 bundles:
6u10: http://j2se.east/arc/1.6.0_10/pit/2008-07-01.09_30
6u11: http://j2se.east/arc/1.6.0_10/pit/2008-07-01.14_39

I've tried with no deployment.properties file, with pre-existing deployment.properties file and with the org_deployment.properties file attached to this report. In each of the case, an applet with the applet tag was run with 6u11 JRE and the deployment.properties file got updated correctly with 
deployment.javaws.jre.0.path=F\:\\Program Files\\Java\\jre1.6.0_11\\bin\\javaw.exe
                                     
2008-07-08
SUGGESTED FIX

http://web-east.east.sun.com/deployment/www/webrevs/ccheung/1.6.0/6721549/webrev/
                                     
2008-08-04
EVALUATION

The problem is due to there exists multiple entries of the same JRE version in the deployment.properties file and the first entry is incorrect. 
A fix is by removing the duplicate and incorrect entry in the _jres array.
                                     
2008-08-21



Hardware and Software, Engineered to Work Together