liubowen
2009-03-20 09:57
浏览 612
已采纳

MINA2.0出现WriteTimeoutException等,忘懂的人给点意见帮忙解决。等待解决!

最近开发服务器,采用了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)

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题