United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6908502 : deployJava.installLatestJRE() does not work sometimes - download problems

Details
Type:
Bug
Submit Date:
2009-12-08
Status:
Resolved
Updated Date:
2013-09-12
Project Name:
JDK
Resolved Date:
2011-08-17
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u18
Fixed Versions:
7u2 (b03)

Related Reports
Backport:

Sub Tasks

Description
uninstall all JRE on your machines

go to:

http://java.sun.com/docs/books/tutorial/deployment/applet/deployingApplet.html

it should invoke installLatest to install latest JRE and run applet.

but sometimes it fail with a download error dialog now.

                                    

Comments
EVALUATION

This problem doesn't reproduce every time. In fact, it's less likely to reproduce than reproducing it. When the problem occurred, the HttpSendRequest in CDownloadDialog::DownloadFile returns an error code of 12029 (ERROR_INTERNET_CANNOT_CONNECT) while trying to download http://java.sun.com/webapps/download/AutoDL?BundleId=36668 which in turns download the JRE iftw bundle. Adding some retry logic when encountering ERROR_INTERNET_CANNOT_CONNECT seems to have fixed the problem.

Also including some cleanup in this fix: 
- use windows error code instead of defining our own; 
- local variable name, szURL, is in conflict with the input parameter name.
                                     
2011-06-14



Hardware and Software, Engineered to Work Together