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

java/net/HttpURLConnection/SetAuthenticator/HTTPTest.java fails with "BindException: Address already in use: connect"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK18 CI:

      java/net/HttpURLConnection/SetAuthenticator/HTTPTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/362)----------
      command: main HTTPTest PROXY305
      reason: User specified action: run main/othervm HTTPTest PROXY305
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.logging,java.base,jdk.httpserver --add-exports java.base/sun.net.www=ALL-UNNAMED --add-exports jdk.httpserver/sun.net.httpserver=ALL-UNNAMED
      elapsed time (seconds): 0.79
      ----------configuration:(5/193)----------
      Boot Layer
        add modules: java.logging java.base jdk.httpserver
        add exports: java.base/sun.net.www ALL-UNNAMED
                     jdk.httpserver/sun.net.httpserver ALL-UNNAMED

      ----------System.out:(24/847)----------

      **** Testing HTTP PROXY305 mode ****

      Socket bound to: 127.0.0.1:64913 after 1 attempt(s)
      Socket bound to: 127.0.0.1:64916 after 1 attempt(s)
      Client: FIRST request: http://127.0.0.1:64916/ GET
      Server305: Got GET: /
      Accept: [text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
      Connection: [keep-alive]
      Host: [127.0.0.1:64916]
      User-agent: [Java/18-ea]
      Server305: Redirecting to server
      Digest Proxy: Got GET: /
      Accept: [text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2]
      Connection: [keep-alive]
      Host: [127.0.0.1:64916]
      User-agent: [Java/18-ea]
      Digest Proxy: Requesting Digest Authentication Digest realm="dublin",
          qop="auth",
          nonce="d539151cd20969324af40803aef6948e"
      Digest Proxy: Sent back 407
      Authenticator AUTHENTICATOR called: 1
      Server305: Sent back 305 Location: http://127.0.0.1:64913/
      Response code: 407
      ----------System.err:(118/9056)----------
      java.net.BindException: Address already in use: connect
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
      at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2048)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2043)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:2042)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1609)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
      at HTTPTestClient.connect(HTTPTestClient.java:52)
      at HTTPTest.run(HTTPTest.java:242)
      at HTTPTest.test(HTTPTest.java:210)
      at HTTPTest.test(HTTPTest.java:184)
      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:992)
      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:177)
      at HTTPTest.main(HTTPTest.java:167)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      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:579)
      at java.base/sun.nio.ch.Net.connect(Net.java:568)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585)
      at java.base/java.net.Socket.connect(Socket.java:633)
      at java.base/java.net.Socket.connect(Socket.java:583)
      at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603)
      at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:246)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:351)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:373)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
      at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
      at HTTPTestClient.connect(HTTPTestClient.java:51)
      ... 20 more
      java.io.UncheckedIOException: java.net.BindException: Address already in use: connect
      at HTTPTest.test(HTTPTest.java:216)
      at HTTPTest.test(HTTPTest.java:184)
      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:992)
      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:177)
      at HTTPTest.main(HTTPTest.java:167)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.net.BindException: Address already in use: connect
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
      at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2048)
      at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:2043)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:2042)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1609)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
      at HTTPTestClient.connect(HTTPTestClient.java:52)
      at HTTPTest.run(HTTPTest.java:242)
      at HTTPTest.test(HTTPTest.java:210)
      ... 18 more
      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:579)
      at java.base/sun.nio.ch.Net.connect(Net.java:568)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585)
      at java.base/java.net.Socket.connect(Socket.java:633)
      at java.base/java.net.Socket.connect(Socket.java:583)
      at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:498)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:603)
      at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:246)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:351)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:373)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1287)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
      at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
      at HTTPTestClient.connect(HTTPTestClient.java:51)
      ... 20 more

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

      STATUS:Failed.`main' threw exception: java.io.UncheckedIOException: java.net.BindException: Address already in use: connect
      ----------rerun:(44/5620)*----------

        Attachments

          Activity

            People

            Assignee:
            dfuchs Daniel Fuchs
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: