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

java/nio/channels/SocketChannel/AdaptSocket.java failed java.net.SocketTimeoutException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      java/nio/channels/SocketChannel/AdaptSocket.java failed java.net.SocketTimeoutException

      ----------System.out:(60/3248)----------

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=41823,localport=33094]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:33094 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      sca00mow.us.oracle.com/10.128.67.176:41823 says: "Wed Apr 18 07:05:00 UTC 20"
      ishut: java.nio.channels.SocketChannel[connected ishut local=localhost/127.0.0.1:33094 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      oshut: java.nio.channels.SocketChannel[connected ishut oshut local=localhost/127.0.0.1:33094 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      closed: Socket[unconnected]
              java.nio.channels.SocketChannel[closed]

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=41823,localport=62819]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:62819 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      sca00mow.us.oracle.com/10.128.67.176:41823 says: "Wed Apr 18 07:05:00 UTC 20"
      ishut: java.nio.channels.SocketChannel[connected ishut local=localhost/127.0.0.1:62819 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      oshut: java.nio.channels.SocketChannel[connected ishut oshut local=localhost/127.0.0.1:62819 remote=sca00mow.us.oracle.com/10.128.67.176:41823]
      closed: Socket[unconnected]
              java.nio.channels.SocketChannel[closed]

      opened: Socket[unconnected]
              java.nio.channels.SocketChannel[unconnected]
      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=59926,localport=59041]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:59041 remote=sca00mow.us.oracle.com/10.128.67.176:59926]
      sca00mow.us.oracle.com/10.128.67.176:59926 says: "Wed Apr 18 07:05:00 UTC 20"
      ishut: java.nio.channels.SocketChannel[connected ishut local=localhost/127.0.0.1:59041 remote=sca00mow.us.oracle.com/10.128.67.176:59926]
      oshut: java.nio.channels.SocketChannel[connected ishut oshut local=localhost/127.0.0.1:59041 remote=sca00mow.us.oracle.com/10.128.67.176:59926]
      closed: Socket[unconnected]
              java.nio.channels.SocketChannel[closed]

      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=61732,localport=50017]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:50017 remote=sca00mow.us.oracle.com/10.128.67.176:61732]
      timeout: 0
      loop: 0
      loop: 1
      loop: 2
      loop: 3

      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=61732,localport=61627]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:61627 remote=sca00mow.us.oracle.com/10.128.67.176:61732]
      timeout: 8000
      loop: 0
      loop: 1
      loop: 2
      loop: 3

      connected: Socket[addr=sca00mow.us.oracle.com/10.128.67.176,port=63786,localport=54198]
                 java.nio.channels.SocketChannel[connected local=localhost/127.0.0.1:54198 remote=sca00mow.us.oracle.com/10.128.67.176:63786]
      timeout: 10
      Read timed out, as expected
      loop: 0
      Read timed out, as expected
      loop: 1
      Read timed out, as expected
      loop: 2
      Read timed out, as expected
      loop: 3
      Read timed out, as expected
      connect failed as expected: java.net.ConnectException: Connection refused
      ----------System.err:(14/813)----------
      java.net.SocketTimeoutException
      at java.base/sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:129)
      at AdaptSocket.testConnect(AdaptSocket.java:162)
      at AdaptSocket.main(AdaptSocket.java:205)
      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:569)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.net.SocketTimeoutException
      JavaTest Message: shutting down test

        Attachments

          Activity

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              mli Hamlin Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: