Strange Exception at read
Alan.Bateman at Sun.COM
Mon Nov 9 04:34:11 PST 2009
> Hi All,
> I tried AIO with a ftp download client test in windows7. it seems work
> at most case, but a PASV ftp command.
> I get an error, which is Access Denied, very strange. stack as follows:
> java.io.IOException: 拒绝访问。(Access Denied)
> at sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:309)
> at sun.nio.ch.Iocp.access$700(Iocp.java:46)
> at sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:399)
> at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:717)
> I trace it, it errno equal 5. a just windows error, but which is not a
> WSA error. it happen at asChannel$ReadTask.run#native.read0.
I haven't seen this but it does suggest a bug. Can you say which version
of Windows this is and which JDK build? (that would help as I just tried
your Main test on a couple of machines but it didn't duplicate).
More information about the nio-dev