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

java/net/httpclient/MaxStreams.java and java/net/httpclient/LineBodyHandlerTest.java fail due to java.nio.channels.ClosedChannelException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • x86
    • windows

      ----------System.out:(131/9469)----------
      config MaxStreams.setup(): success
      test MaxStreams.testAsString("http://localhost:57038/http2/fixed"): failure
      java.net.ConnectException
      at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:1051)
      at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:133)
      at MaxStreams.testAsString(MaxStreams.java:113)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
      at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
      at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
      at java.base/java.lang.Thread.run(Thread.java:1623)
      Caused by: java.net.ConnectException
      at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1317)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:225)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection.checkRetryConnect(PlainHttpConnection.java:260)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$2(PlainHttpConnection.java:236)
      at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
      at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
      at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
      at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773)
      ... 3 more
      Caused by: java.nio.channels.ClosedChannelException
      at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:202)
      at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:786)
      at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:874)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:209)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:211)
      ... 9 more
      test MaxStreams.testAsString("https://localhost:57041/https2/fixed"): failure
      org.testng.internal.thread.ThreadTimeoutException: Method MaxStreams.testAsString() didn't finish within the time-out 20000
      at org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:371)
      at org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:282)
      ...

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: