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

java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java failed with "BindException: Address already in use: connect"

XMLWordPrintable

    • b02
    • x86_64
    • windows

        The following test failed in the JDK20 CI:

        java/net/HttpURLConnection/SetAuthenticator/HTTPSetAuthenticatorTest.java

        Here's a snippet from the log file:

        Client: Using authenticator #2: 1904158599-11@HTTPTest$HttpTestAuthenticator
        Client: FIRST request: http://127.0.0.1:50150/ GET
        Server307: Got GET: /
        Accept: [*/*]
        Connection: [keep-alive]
        Host: [127.0.0.1:50150]
        User-agent: [Java/20-ea]
        Server307: Redirecting to server
        Server307: Sent back 307 Location: http://127.0.0.1:50146/
        NoAuth Server: Got GET: /
        Accept: [*/*]
        Connection: [keep-alive]
        Host: [127.0.0.1:50146]
        User-agent: [Java/20-ea]
        Response code: 200
        Response body:

        Client: NEXT request: http://127.0.0.1:50150/ POST
        ----------System.err:(85/6239)----------
        WARNING: HttpsProxyTunnel is an experimental test class
        java.net.BindException: Address already in use: connect
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:580)
        at java.base/sun.nio.ch.Net.connect(Net.java:569)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:576)
        at java.base/java.net.Socket.connect(Socket.java:666)
        at java.base/java.net.Socket.connect(Socket.java:600)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
        at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:281)
        at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:386)
        at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:408)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1310)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1288)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1129)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1058)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1431)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1402)
        at HTTPTestClient.connect(HTTPTestClient.java:63)
        at HTTPSetAuthenticatorTest.run(HTTPSetAuthenticatorTest.java:142)
        at HTTPTest.test(HTTPTest.java:217)
        at HTTPTest.test(HTTPTest.java:185)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1006)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at HTTPTest.execute(HTTPTest.java:178)
        at HTTPSetAuthenticatorTest.main(HTTPSetAuthenticatorTest.java:97)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1591)
        java.io.UncheckedIOException: java.net.BindException: Address already in use: connect
        at HTTPTest.test(HTTPTest.java:223)
        at HTTPTest.test(HTTPTest.java:185)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1006)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
        at HTTPTest.execute(HTTPTest.java:178)
        at HTTPSetAuthenticatorTest.main(HTTPSetAuthenticatorTest.java:97)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1591)
        Caused by: java.net.BindException: Address already in use: connect
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:580)
        at java.base/sun.nio.ch.Net.connect(Net.java:569)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:576)
        at java.base/java.net.Socket.connect(Socket.java:666)
        at java.base/java.net.Socket.connect(Socket.java:600)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
        at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:281)
        at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:386)
        at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:408)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1310)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1288)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1129)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1058)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1431)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1402)
        at HTTPTestClient.connect(HTTPTestClient.java:63)
        at HTTPSetAuthenticatorTest.run(HTTPSetAuthenticatorTest.java:142)
        at HTTPTest.test(HTTPTest.java:217)
        ... 16 more

        JavaTest Message: Test threw exception: java.io.UncheckedIOException: java.net.BindException: Address already in use: connect

              dfuchs Daniel Fuchs
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: