Netty 在 android-x86 上抛出 java.nio.channels.ClosedSelectorException
我正在尝试使用 android-x86 代替标准 android-emulator,因为它非常快。通过 virtualbox 使用镜像 android-x86-2.2-generic.iso 启动它。
我的项目使用 netty 然后我尝试创建连接时出现以下错误:
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): 选择器循环中出现意外异常。 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):java.nio.channels.ClosedSelectorException 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在org.apache.harmony.nio.internal.SelectorImpl.closeCheck(SelectorImpl.java:204) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:236) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:224) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink $ Boss.run(NioClientSocketPipelineSink.java:239) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:561) 06-22 13:15:10.600:警告/lientSocketPipelineSink(2411):在java.lang.Thread.run(Thread.java:1096)
I'am trying to use android-x86 instead standard android-emulator, because it's very FAST. Launched it via virtualbox with image android-x86-2.2-generic.iso.
My project using netty and then I'am trying to create connection got the follow error:
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): Unexpected exception in the selector loop.
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): java.nio.channels.ClosedSelectorException
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at org.apache.harmony.nio.internal.SelectorImpl.closeCheck(SelectorImpl.java:204)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:236)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:224)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:239)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
06-22 13:15:10.600: WARN/lientSocketPipelineSink(2411): at java.lang.Thread.run(Thread.java:1096)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于已知问题,也许您应该使用 OIO 而不是 NIO: http://markmail.org/message/ypa3nrr64kzsyfsa
Maybe you should use OIO instead of NIO because of the known issue: http://markmail.org/message/ypa3nrr64kzsyfsa