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

java/net/Authenticator/B4921848.java failed due to "ConnectException: Connection refused"

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      sparc_64
    • OS:
      solaris

      Description

      The following test failed in the JDK14 CI:

      java/net/Authenticator/B4921848.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/310)----------
      command: main -Dhttp.auth.preference=basic B4921848
      reason: User specified action: run main/othervm -Dhttp.auth.preference=basic B4921848
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/sun.net.www=ALL-UNNAMED
      elapsed time (seconds): 2.098
      ----------configuration:(4/99)----------
      Boot Layer
        add modules: java.base
        add exports: java.base/sun.net.www ALL-UNNAMED

      ----------System.out:(8/651)----------
      Server: listening at: http://127.0.0.1:57927/
      client opening connection to: http://127.0.0.1:57927/d1/d2/d3/foo.html
      SERVER: new connection. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:57927 remote=/127.0.0.1:33275]]
      SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:57927 remote=/127.0.0.1:33275]]
      SERVER: orderlyCloseChannel chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:57927 remote=/127.0.0.1:33275]]
      SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected oshut local=/127.0.0.1:57927 remote=/127.0.0.1:33275]]
      Server: consume
      Force to Shutdown
      ----------System.err:(32/2185)----------
      java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:503)
      at java.base/sun.nio.ch.Net.connect(Net.java:492)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
      at java.base/java.net.Socket.connect(Socket.java:648)
      at java.base/java.net.Socket.connect(Socket.java:597)
      at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
      at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
      at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
      at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1256)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1194)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1082)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1016)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1595)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1523)
      at B4921848.client(B4921848.java:84)
      at B4921848.main(B4921848.java:106)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.net.ConnectException: Connection refused
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.net.ConnectException: Connection refused
      ----------rerun:(40/5268)*----------

        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: