gpt4 book ai didi

netty - 来自下游 java.nio.channels.ClosedChannelException 的意外异常

转载 作者:行者123 更新时间:2023-12-04 19:39:27 27 4
gpt4 key购买 nike

我是 Netty 的新手,我面临的问题是,Netty 工作了几天,5-6 天后它没有响应。

我检查了日志中的错误,上面写着

Nov 26, 2013 11:58:17 PM com.spciq.eventmanagement.connection.MsgServerHandler exceptionCaught
WARNING: Unexpected exception from downstream.
java.nio.channels.ClosedChannelException
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:409)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromUserCode(AbstractNioWorker.java:127)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:99)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36)
at org.jboss.netty.channel.Channels.write(Channels.java:725)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:71)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:60)
at com.spciq.eventmanagement.connection.MsgUser.notifyUser(MsgUser.java:274)
at com.spciq.eventmanagement.connection.MsgUser.onMessage(MsgUser.java:177)
at com.hazelcast.impl.ListenerManager.callListener(ListenerManager.java:419)
at com.hazelcast.impl.ListenerManager.callListeners(ListenerManager.java:334)
at com.hazelcast.impl.BaseManager$2.run(BaseManager.java:1391)
at com.hazelcast.impl.executor.ParallelExecutorService$ParallelExecutorImpl$ExecutionSegment.run(ParallelExecutorService.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at com.hazelcast.impl.ExecutorThreadFactory$1.run(ExecutorThreadFactory.java:38)

有人可以帮我解决这个问题吗?这正在影响我们的 Prod Chat 客户端

最佳答案

这意味着 channel 在所有内容写完之前就关闭了。在不了解您的应用程序的情况下,很难判断问题出在哪里。可能是远程对等端在您能够写出所有内容之前关闭了连接,或者您之前关闭了它。

关于netty - 来自下游 java.nio.channels.ClosedChannelException 的意外异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20342996/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com