最近开发服务器,采用了MINA框架,结果运行一段时间后出现2个异常,异常如下:
org.apache.mina.core.write.WriteTimeoutException
at org.apache.mina.core.session.IdleStatusChecker.notifyWriteTimeout(IdleStatusChecker.java:254)
at org.apache.mina.core.session.IdleStatusChecker.notifyIdleSession(IdleStatusChecker.java:200)
at org.apache.mina.core.session.IdleStatusChecker.notifyIdleness(IdleStatusChecker.java:150)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.notifyIdleSessions(AbstractPollingIoProcessor.java:610)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$10(AbstractPollingIoProcessor.java:606)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:869)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
[INFO] 2009-03-20 09:43:18,609 NioProcessor-3:( org.apache.mina.filter.logging.LoggingFilter.log ) SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
[WARN] 2009-03-20 09:43:18,609 NioProcessor-3:( org.apache.mina.filter.logging.LoggingFilter.log ) EXCEPTION:
org.apache.mina.core.write.WriteToClosedSessionException
at org.apache.mina.core.polling.AbstractPollingIoProcessor.clearWriteRequestQueue(AbstractPollingIoProcessor.java:521)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:476)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.remove(AbstractPollingIoProcessor.java:455)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$9(AbstractPollingIoProcessor.java:443)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:868)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
MINA2.0出现WriteTimeoutException等,忘懂的人给点意见帮忙解决。等待解决!
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- iteye_5372 2009-03-20 13:19关注
WriteToClosedSessionException 很明显是 SESSION被关掉了嘛。远端主动关闭连接了?考虑通过心跳包保持长连接吧
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 关于vue2中methods使用call修改this指向的问题
- ¥15 idea自动补全键位冲突
- ¥15 请教一下写代码,代码好难
- ¥15 iis10中如何阻止别人网站重定向到我的网站
- ¥15 滑块验证码移动速度不一致问题
- ¥100 栈回溯相关,模块加载后KiExceptionDispatch无法正常回溯了
- ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
- ¥15 麒麟V10桌面版SP1如何配置bonding
- ¥15 Marscode IDE 如何预览新建的 HTML 文件
- ¥15 K8S部署二进制集群过程中calico一直报错