AsynchronousCloseException when closing a channel

Gian Franco Zabarino gfz87 at hotmail.com
Sun Sep 4 23:27:17 PDT 2011


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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20110905/f574d54e/attachment.html 


More information about the nio-dev mailing list