JDK-8129389 : javax/net/ssl/DTLS tests fail intermittently
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-06-21
  • Updated: 2022-11-29
  • Resolved: 2016-05-20
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 9
9 b120Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
java.lang.RuntimeException: Too much loops to produce handshake packets
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:153)
	at DTLSOverDatagram.doServerSide(DTLSOverDatagram.java:94)
	at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:515)
	at DTLSOverDatagram$ServerCallable.call(DTLSOverDatagram.java:505)
	at java.util.concurrent.FutureTask.run(FutureTask.java:265)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
java.lang.Exception: Not ready for application data yet
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:225)
	at DTLSOverDatagram.doClientSide(DTLSOverDatagram.java:116)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:549)
	at DTLSOverDatagram$ClientCallable.call(DTLSOverDatagram.java:539)
	at java.util.concurrent.FutureTask.run(FutureTask.java:265)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Maybe too many UDP packet loss?
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/0fca98a37871 User: lana Date: 2016-05-25 17:36:43 +0000
25-05-2016

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/0fca98a37871 User: asmotrak Date: 2016-05-20 16:40:55 +0000
20-05-2016

Code review: http://mail.openjdk.java.net/pipermail/security-dev/2016-May/013945.html
19-05-2016

I couldn't reproduce these failures. The tests need to be updated to print more information to logs, so that more information will be available if they fail next time. I also noticed that the tests doesn't check for FINISHED handshake status which can be returned by wrap/unwrap methods. This status should indicate that handshake finished. Also a couple of more checks may be added to handshake() method.
19-05-2016

javax/net/ssl/DTLS/WeakCipherSuite.java also fails with similar stack trace, see details in JDK-8138877.
19-05-2016