United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6721619 Java Web Start 1.6.0 shows intermittent https communication breakdown
JDK-6721619 : Java Web Start 1.6.0 shows intermittent https communication breakdown

Details
Type:
Bug
Submit Date:
2008-07-02
Status:
Closed
Updated Date:
2011-12-15
Project Name:
JDK
Resolved Date:
2010-03-22
Component:
core-libs
OS:
windows_xp
Sub-Component:
java.net
CPU:
x86
Priority:
P2
Resolution:
Not an Issue
Affected Versions:
6
Fixed Versions:
7

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
Java Web Start application started on Java Web Start 1.6.0 intermittently 
fails to download resource files over https. The problem can be reproduced
with 1.6.0_03, 1.6.0_06 and 1.6.0_10 b25. 
Everything is fine when using Java Web Start 1.5.0 on JRE 1.6.0 in exactly
the same enviroment.
So, Java Web Start 1.6.0 is less robust/reliable wrt https communication 
than Java Web Start 1.5.0.

                                    

Comments
WORK AROUND

use -Dhttp.keepAlive=false for Java Web Start 1.6
                                     
2008-07-04
EVALUATION

There is a race condition in the KeepAliveStream implementation that may allow a KeepAliveStream instance to be cleaned up by the KeepAliveStreamCleaner before it has its queuedForCleanup flag set. This may lead to the Http(s)Client instance being put in the KeepAliveCache twice. This may result in the KeepAliveCache closing the underlying socket while the jaws implementation is downloading on the same socket.

The solution is to synchronize on the KeepAliveStream instance while offering it to the cleaner queue as well as setting its queuedForCleanup flag. This will block the clearner from performing any action on the KeepAliveStream instance before it gets its queuedForCleanup flag set.
                                     
2008-07-25
EVALUATION

Since the changes for 6882654 (Remove dependency on java.util.concurrent from KeepAlive implementaion) this issue is no longer a problem in JDK7. CR 6882654 changes the synchronization where KeepAliveStreams are put on the queue and does not suffer from a race where the comsumer may remove the streams and clean them before the producer has finished setting the queuedForCleanup flag.
                                     
2010-03-22



Hardware and Software, Engineered to Work Together