powered by Jive Software

Another JVM crash

Our JVM crashed again today, and the last thing I see in the error logs is a flood of:

2008.04.10 14:34:01 [org.jivesoftware.openfire.nio.ConnectionHandler.exceptionCaught(ConnectionHandler.java:109)] java.lang.IllegalStateException: Already released buffer.  You released the buffer too many times.
        at org.apache.mina.common.SimpleByteBufferAllocator$SimpleByteBuffer.release(SimpleByteBufferAllocator.java:81)
        at org.apache.mina.util.ByteBufferUtil.releaseIfPossible(ByteBufferUtil.java:39)
        at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageSent(AbstractIoFilterChain.java:581)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageSent(AbstractIoFilterChain.java:320)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:53)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageSent(AbstractIoFilterChain.java:653)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageSent(ProtocolCodecFilter.java:186)
        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageSent(AbstractIoFilterChain.java:320)
        at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:53)
        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageSent(AbstractIoFilterChain.java:653)
        at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:241)
        at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:283)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
        at java.lang.Thread.run(Thread.java:619)

This is Openfire 3.4.3 which is what we have running in production, we will be updating to 3.5.0 shortly. Any ideas what could be causing this issue?

Hey Ben,

I would definitely recommend doing an upgrade since latest version includes a newer version of MINA. Consider doing the upgrade based on the priority of this issue for you. If after an upgrade you still see this issue then we will need to know how to reproduce it (including if client is using compression and/or TLS).

Thanks,

– Gato

Hello,

I am using Openfire 3.7.1 and facing the same error. Using MINA 1.1.7, any ideas on why/how to fix this error?