United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6710572 PIP from 6u10 to 6u11 fails when jusched is running
JDK-6710572 : PIP from 6u10 to 6u11 fails when jusched is running

Details
Type:
Bug
Submit Date:
2008-06-04
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-10-01
Component:
install
OS:
windows_xp,windows
Sub-Component:
install
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b31)

Related Reports
Backport:
Duplicate:
Duplicate:

Sub Tasks

Description
See the next note for updated information based on b27.

While testing the PIP for promoted build, I see the file mismatch error when patching from 6u11 to 6u12 if 6u5 is on the system.

The steps to reproduce the error 

1. Install 6u5
2. Install 6u10 jre
http://jre.sfbay/java/re/jdk/6u10/promoted/beta/b25/bundles/windows-i586/
3. Install 6u11
http://javadl.sun.com/webapps/download/GetFile/1.6.0_11-b325/windows-i586/jre-6u11-windows-i586-p-iftw.exe
4. Try to install 6u12,  You will get the file mismatch error complaining jusched.exe. Please see attached screen shot.
http://javadl.sun.com/webapps/download/GetFile/1.6.0_12-b325/windows-i586/jre-6u12-windows-i586-p-iftw.exe

The 6u10 to 6u11 worked OK. The issue only happens for 6u11 to 6u12.

If I uninstall 6u5. Then everything works OK(6u10 to 6u11, 6u10 to 6u11 to 6u12, 6u10 to 6u12).
Updated with 2 scenarios for b27:
Scenario A:
1. Install 6u10 JRE.
(http://j2se.east/arc/1.6.0_10/pit/2008-06-19/)
2. Start jusched.exe.  Jusched will start when users reboot because it is in HKLM\Software\Microsoft\Windows\CurrentVersion\Run
3. Patch to 6u11.
(http://j2se.east/arc/1.6.0_10/pit/2008-06-19.12_25/windows-i586/jre-6u11-windows-i586-p-iftw.exe)

Scenario B:
1. Install 6u5 or 6u6 JRE.
2. Install 6u10 JRE.
(http://j2se.east/arc/1.6.0_10/pit/2008-06-19/)
For some reason, installing 6u10 starts jusched when 6u5 or 6u6 is installed.
3. Patch to 6u11.
(http://j2se.east/arc/1.6.0_10/pit/2008-06-19.12_25/windows-i586/jre-6u11-windows-i586-p-iftw.exe)

Actual behavior in both scenarios:
After installation of 6u11, the 6u10 version of jusched is running, until reboot and PendingFileRenameOperations applied to delete and replace jusched.exe.

The setup complete dialog says nothing about a reboot required (see attachment).

The PendingFileRenameOperations value is:
>reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRena
meOperations
! REG.EXE VERSION 3.0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
    PendingFileRenameOperations REG_MULTI_SZ          \??\C:\PROGRA~1\Java\jre6\bin\jusched.exe\0\0
\??\C:\PROGRA~1\Java\jre6\bin\jusched.exe\0\0\??\C:\PROGRA~1\Java\jre6\bin\RTA04
520\0\??\C:\PROGRA~1\Java\jre6\bin\jusched.exe\0\0


If you try to install the b27 dummy 6u12 without reboot, "Error 25025.  A previous Java uninstallation was never completed.  You need to restart your computer before installing Java."  is displayed and the install is blocked.
6u12: http://j2se.east/arc/1.6.0_10/pit/2008-06-19.15_16/windows-i586/jre-6u12-windows-i586-p-iftw.exe

                                    

Comments
EVALUATION

The method that shutsdown the jusched.exe is invoked after patchjre is done.
But patchjre is failing because jusched.exe is in use.
                                     
2008-06-04
EVALUATION

I ran some more tests, and here is the behavior:

Scenario 1:

1. Remove all JRE's
2. Installed 6u6
3. Checked tastmanager and jusched.exe isn't running
4. Install 6u10-b25
5. Checked tastmanager and jusched.exe *IS* running

Scenario 2:

1. Remove all JRE's
2. Installed 6u10-b25
3. Checked tastmanager and jusched.exe *isn't* running

This is inconsistent behavior.  6u10 kicks off jusched.exe immediately after installation *ONLY* if 6u5 is already installed.
                                     
2008-06-11
EVALUATION

jusched.exe is started by jre installation if it  not the 1st jre on the system.
-Rajani
                                     
2008-06-11
SUGGESTED FIX

http://web-east.east.sun.com/www/webrevs/rkaja/6710572/

Rajani changed InstallExecuteSequence.idt so UnInstallJUpdate is run during remove or update.
                                     
2008-07-15



Hardware and Software, Engineered to Work Together