JDK-7060523 : Loading applet-JARs with SSL and client authentication causes concurrentModificationException throws
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp,windows_7
  • CPU: x86
  • Submitted: 2011-06-28
  • Updated: 2013-09-12
  • Resolved: 2011-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u60Fixed 7u2 b03Fixed 8Fixed
Related Reports
Relates :  
Relates :  
Description
J2SE Version (please include all output from java -version flag):
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

Does this problem occur on J2SE 5.0.x or 6ux ?  Yes / No (pick one)
Java 6ux


Operating System Configuration Information (be specific):
Windows XP
 with both IE 8 and Firefox 3.6

Bug Description:
Java Plugin: Loading applet-JARs with SSL and client authentication causes ConcurrentModificationException
.
It is a regression problem and occurs only with the next-generation java-plugin

Steps to Reproduce (be specific):

Deploy an applet on a site where access is restricted to ssl client authentication.
Launch the applet and watch the java console.

(check Comments field for detail)


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected Console Output 
No error is logged

ACTUAL -
Actual Console Output
The console output starts with
Exception in thread "HandshakeCompletedNotify-Thread" java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
	at java.util.HashMap$EntryIterator.next(Unknown Source)
	at java.util.HashMap$EntryIterator.next(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl$NotifyHandshakeThread.run(Unknown Source)

This error appears after you choose your ssl client certificate in the java plugin client authentication dialog.

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION It looks like a race condition happened, changes need to be done in both j2se and deploy workspace, working in progress.
05-07-2011

EVALUATION need to try with 7 and see if problem exists in 7 as well. need to find out what triggers the com.sun.net.ssl.internal.ssl.SSLSocketImpl$NotifyHandshakeThread to begin with.
29-06-2011