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

java/net tests fails with java.net.SocketException: Protocol family unavailable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • None
    • core-libs

      ----------System.err:(41/2781)----------
      java.net.SocketException: Protocol family unavailable
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:493)
      at java.base/sun.nio.ch.Net.connect(Net.java:482)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
      at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339)
      at java.base/java.net.Socket.connect(Socket.java:585)
      at java.base/java.net.Socket.connect(Socket.java:534)
      at java.base/java.net.Socket.<init>(Socket.java:457)
      at java.base/java.net.Socket.<init>(Socket.java:265)
      at HttpProxy$ConnectProxyTunnelServer.processRequest(HttpProxy.java:255)
      at HttpProxy$ConnectProxyTunnelServer.run(HttpProxy.java:209)
      java.net.SocketException: Unexpected end of file from server
      at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:862)
      at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2074)
      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 java.base/java.net.HttpConnectSocketImpl.doTunneling(HttpConnectSocketImpl.java:208)
      at java.base/java.net.HttpConnectSocketImpl.doTunnel(HttpConnectSocketImpl.java:197)
      at java.base/java.net.HttpConnectSocketImpl$2.run(HttpConnectSocketImpl.java:177)
      at java.base/java.net.HttpConnectSocketImpl$2.run(HttpConnectSocketImpl.java:175)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:553)
      at java.base/java.net.HttpConnectSocketImpl.privilegedDoTunnel(HttpConnectSocketImpl.java:174)
      at java.base/java.net.HttpConnectSocketImpl.connect(HttpConnectSocketImpl.java:121)
      at java.base/java.net.Socket.connect(Socket.java:585)
      at java.base/java.net.Socket.connect(Socket.java:534)
      at HttpProxy.test(HttpProxy.java:117)
      at HttpProxy.main(HttpProxy.java:82)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:830)

      Seen in:

      java/net/Socks/SocksIPv6Test.java
      java/net/Socket/HttpProxy.java

            chegar Chris Hegarty
            ctornqvi Christian Tornqvist
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: