JDK-8343411 : Test fail on Windows due to "An established connection was aborted by the software in your host machine"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2024-10-31
  • Updated: 2024-11-08
  • Resolved: 2024-11-08
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 24
24 masterFixed
Related Reports
Relates :  
Relates :  
Description
There are pre-existing error reports in JDK-8339356 and JDK-8331072 and I suspect this is just a symptom of Windows networking issues in the test environment.

Latest failure: 

java/net/HttpURLConnection/HttpURLConnectionExpect100Test.java

/127.0.0.1:49218
Getting: field0
Getting: field1
Getting: field2
Getting: field3
Getting: field4
/127.0.0.1:49223
Getting: field0
Getting: field1
Getting: field2
Getting: field3
Getting: field4
----------System.err:(58/4467)----------
STARTED    HttpURLConnectionExpect100Test::defaultRequestHitCountTest 'defaultRequestHitCountTest()'
java.net.SocketException: An established connection was aborted by the software in your host machine
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:509)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:493)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2071)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2066)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:2065)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1635)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1615)
	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:530)
	at HttpURLConnectionExpect100Test.defaultRequestHitCountTest(HttpURLConnectionExpect100Test.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:573)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
Caused by: java.net.SocketException: An established connection was aborted by the software in your host machine
	at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
	at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:256)
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:307)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
	at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:1115)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1102)
	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:296)
	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:352)
	at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:425)
	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:404)
	at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:827)
	at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1706)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1615)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3222)
	at HttpURLConnectionExpect100Test.getHeaderField(HttpURLConnectionExpect100Test.java:126)
	at HttpURLConnectionExpect100Test.defaultRequestHitCountTest(HttpURLConnectionExpect100Test.java:101)
	... 3 more
Comments
[jdk23u-fix-request] Approval Request from Abhishek N for backport
08-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk23u/pull/220 Date: 2024-11-08 19:15:18 +0000
08-11-2024

Changeset: 72f67fb1 Branch: master Author: Daniel JeliƄski <djelinski@openjdk.org> Date: 2024-11-08 15:03:17 +0000 URL: https://git.openjdk.org/jdk/commit/72f67fb16a2470fc40c6ddc3700ba92f98a62096
08-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21948 Date: 2024-11-07 11:06:20 +0000
07-11-2024

The other issues mentioned by David Holmes were assigned to [~mdonovan] and [~djelinski]. I'm assigning this somewhat arbitrarily to [~djelinski]. Please close as a duplicate or fight over it between yourselves as appropriate. :-)
04-11-2024