首页 新闻 会员 周边 捐助

在线急等 无解中。java.nio.BufferOverflowException

0
悬赏园豆:100 [待解决问题]

在使用Mina框架中遇到此异常! 我修改过缓冲区大小 还是不能解决

java.nio.BufferOverflowException
 at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:311)
 at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:290)
 at sun.nio.ch.IOUtil.write(IOUtil.java:70)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
 at org.apache.mina.transport.socket.nio.NioProcessor.write(NioProcessor.java:185)
 at org.apache.mina.transport.socket.nio.NioProcessor.write(NioProcessor.java:41)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor.writeBuffer(AbstractPollingIoProcessor.java:776)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor.flushNow(AbstractPollingIoProcessor.java:713)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor.flush(AbstractPollingIoProcessor.java:648)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$500(AbstractPollingIoProcessor.java:56)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:895)
 at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)

〆物事、人非的主页 〆物事、人非 | 初学一级 | 园豆:109
提问于:2012-07-05 10:17
< >
分享
所有回答(1)
0

是否缓冲区太小了。

kenny123 | 园豆:202 (菜鸟二级) | 2013-04-02 11:11
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册