Hi all,
I am using Mina-1.1.6 downloaded from mina.apache.org. I have developed
an SSL Client and an SSL Server. My SSL Client will send a request to the
SSL Server, and when it receives a response from the SSL Server, it will
close the connection.
Sometimes however, the server receives the CLOSED message before receiving a
SENT message (which is for the response it has sent out earlier). When that
happens, the following exception is thrown:
<exception>
INFO: [/192.168.2.28:1793]
EchoServerSessionHandler::Exception:java.lang.IllegalStateException: Already
released buffer. You released the buffer too many times.
java.lang.IllegalStateException: Already released buffer. You released the
buffer too many times.
at
org.apache.mina.common.PooledByteBufferAllocator$PooledByteBuffer.release(Po
oledByteBufferAllocator.java:310)
at
org.apache.mina.common.ByteBufferProxy.release(ByteBufferProxy.java:69)
at org.apache.mina.filter.SSLFilter.messageSent(SSLFilter.java:434)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageSent(Abs
tractIoFilterChain.java:320)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoF
ilterChain.java:53)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageSent
(AbstractIoFilterChain.java:653)
at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.j
ava:222)
at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Exe
cutorFilter.java:264)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
07)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:
51)
at java.lang.Thread.run(Thread.java:619)
</exception>
It is most probably harmless, as both the client and server seems to receive
the correct count of request/responses. But is it really harmless?
ps. Keep up the good work, guys!
Regards,
Kok Hoor