AsynchronousCloseException when closing a channel

Sean Chou zhouyx at linux.vnet.ibm.com
Mon Sep 5 00:35:24 PDT 2011


Hi Gian,
    Will you please give a simple testcase and the whole stack trace when
throwing
 exception? It will be helpful.

2011/9/5 Gian Franco Zabarino <gfz87 at hotmail.com>

>  Hi everybody, I found myself on a situation where I'm getting an
> AsynchronousCloseException, when calling to
> AsynchronousSocketChannel.close() method. I'm using JRE 1.7.0-b147, on
> Ubuntu server 64-bits. the call to the close method is made when an attempt
> for reading the channel is failed, inside the failed method of the read
> completionhandler. Is this normal behavior? This is the thread stack of the
> exception:
>
> java.nio.channels.AsynchronousCloseException
>         at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(Unknown
> Source)
>         at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(Unknown
> Source)
>         at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implClose(Unknown
> Source)
>         at sun.nio.ch.AsynchronousSocketChannelImpl.close(Unknown Source)
>         at ... (project classes)
>
> Thank you for your time. Greetings
>
> Gian Franco Zabarino
>
>


-- 
Best Regards,
Sean Chou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20110905/322fb375/attachment.html 


More information about the nio-dev mailing list