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

java/net/httpclient/ProxyAuthDisabledSchemesSSL.java fails with Connection Refused

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 13
    • core-libs
    • sparc_64
    • solaris

      Server: creating input stream for stream 15
      Using handler for: /
      Sent response headers 200
      TestServer: POST /foo/
      Server: creating input stream for stream 17
      Using handler for: /
      Sent response headers 200
      FINE [Jan 08, 3:56:28.627602000] sun.net.httpserver.ServerImpl <init>: HttpServer created https null
      WARNING: HttpsProxyTunnel is an experimental test class
      FINE [Jan 08, 3:56:28.644244000] sun.net.httpserver.ServerImpl createContext: context created: /
      java.net.ConnectException: Connection refused
      at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:561)
      at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
      at DigestEchoClient.testBasic(DigestEchoClient.java:472)
      at DigestEchoClient.main(DigestEchoClient.java:281)
      at ProxyAuthDisabledSchemesSSL.main(ProxyAuthDisabledSchemesSSL.java:58)
      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:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection$ConnectEvent.handle(PlainHttpConnection.java:128)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:957)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:912)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:912)
      Server stopping 4 connections
      Server stopping 2 connections
      Server connection to /127.0.0.1:61759 stopping. 9 streams
      TestServer: Connection writer stopping
      Server connection to /127.0.0.1:45708 stopping. 9 streams
      TestServer: Connection writer stopping
      Server stopping 2 connections
      Server connection to /127.0.0.1:34274 stopping. 9 streams
      TestServer: Connection writer stopping
      Server connection to /127.0.0.1:34179 stopping. 9 streams
      TestServer: Connection writer stopping
      java.net.ConnectException: Connection refused
      at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:561)
      at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
      at DigestEchoClient.testBasic(DigestEchoClient.java:472)
      at DigestEchoClient.main(DigestEchoClient.java:281)
      at ProxyAuthDisabledSchemesSSL.main(ProxyAuthDisabledSchemesSSL.java:58)
      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:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)
      Caused by: java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
      at java.net.http/jdk.internal.net.http.PlainHttpConnection$ConnectEvent.handle(PlainHttpConnection.java:128)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:957)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:912)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
      at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:912)

      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

            dfuchs Daniel Fuchs
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: