JDK-8132320 : javax/net/ssl/DTLS/CipherSuite.java fails intermittently due to BUFFER_OVERFLOW status
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2015-07-24
  • Updated: 2017-08-09
  • 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
9Resolved
Related Reports
Relates :  
Description
javax/net/ssl/DTLS/CipherSuite.java fails intermittently:

#section:main
----------messages:(3/178)----------
command: main CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA
reason: User specified action: run main/othervm CipherSuite TLS_RSA_WITH_AES_128_CBC_SHA 
elapsed time (seconds): 0.947
----------System.out:(18/1203)----------
java.lang.Exception: Buffer underflow: incorrect client maximum fragment size
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:197)
	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)
java.lang.Exception: Not ready for application data yet
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:225)
	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)
----------System.err:(36/2427)----------
java.util.concurrent.ExecutionException: java.lang.Exception: Buffer underflow: incorrect client maximum fragment size
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at DTLSOverDatagram.runTest(DTLSOverDatagram.java:488)
	at CipherSuite.main(CipherSuite.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)
	Suppressed: java.util.concurrent.ExecutionException: java.lang.Exception: Not ready for application data yet
		... 10 more
	Caused by: java.lang.Exception: Not ready for application data yet
		at DTLSOverDatagram.handshake(DTLSOverDatagram.java:225)
		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)
		... 1 more
Caused by: java.lang.Exception: Buffer underflow: incorrect client maximum fragment size
	at DTLSOverDatagram.handshake(DTLSOverDatagram.java:197)
	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)
	... 1 more

JavaTest Message: Test threw exception: java.util.concurrent.ExecutionException: java.lang.Exception: Buffer underflow: incorrect client maximum fragment size
Comments
Close "Cannot Reproduce" issues
13-06-2016

I couldn't reproduce it manually. JDK-8129389 is going to add more debug output for DTLS tests. Please re-open this bug if BUFFER_OVERFLOW error happens again.
20-05-2016