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

(ch) java/nio/channels/AsynchronousSocketChannel/Basic.java failed with "AsynchronousCloseException expected"

    Details

    • Subcomponent:
    • Resolved In Build:
      b11
    • OS:
      os_x

      Description

      ----------System.out:(6/163)----------
      -- bind --
      -- socket options --
      -- connect --
      -- asynchronous close when connecting --
      -- asynchronous close when reading --
      -- asynchronous close when writing --
      ----------System.err:(29/2081)----------
      java.lang.RuntimeException: AsynchronousCloseException expected
      at Basic.testCloseWhenPending(Basic.java:359)
      at Basic.main(Basic.java:61)
      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:538)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.nio.channels.ClosedChannelException
      at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:366)
      at java.base/sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:399)
      at java.base/java.nio.channels.AsynchronousSocketChannel.write(AsynchronousSocketChannel.java:577)
      at Basic$2.completed(Basic.java:332)
      at Basic$2.completed(Basic.java:330)
      at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
      at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishWrite(UnixAsynchronousSocketChannelImpl.java:624)
      at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:194)
      at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:212)
      at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:301)
      at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1161)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:844)
      at java.base/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:122)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mli Hamlin Li
                Reporter:
                jjiang John Jiang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: