Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343411

Test fail on Windows due to "An established connection was aborted by the software in your host machine"

XMLWordPrintable

    • b24
    • windows

      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

            djelinski Daniel Jelinski
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: