directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] Exceptions causing server to "die"?
Date Mon, 07 Feb 2005 01:59:44 GMT
Hi Janne,

On Sun, 6 Feb 2005 23:51:27 +0100, Jan Andersson <janne@minq.se> wrote:
> I my implementation of an IoHandlerFilter I didn't take care of an
> Exception thrown.
> I was running the filter with the EchoServer example and got the
> following:
> 
> ...
> IoThreadPool-0 /192.168.0.101:33036: WRITTEN
> IoThreadPool-8 /192.168.0.101:33036: WRITTEN
> IoThreadPool-0 /192.168.0.101:33036: EXCEPTION
> java.lang.RuntimeException: Invalid Handshaking State: NOT_HANDSHAKING
>          at
> org.apache.mina.io.ssl.SSLHandler.doHandshake(SSLHandler.java:220)
>          at
> org.apache.mina.io.ssl.SSLHandler.continueHandshake(SSLHandler.java:
> 109)
>          at
> org.apache.mina.io.ssl.IoSSLFilter.writeNetBuffer(IoSSLFilter.java:184)
>          at
> org.apache.mina.io.ssl.IoSSLFilter.handleSSLData(IoSSLFilter.java:148)
>          at
> org.apache.mina.io.ssl.IoSSLFilter.dataRead(IoSSLFilter.java:103)
>          at
> org.apache.mina.util.IoHandlerFilterManager$Entry$1.dataRead(IoHandlerFi
> lterManager.java:387)
>          at
> org.apache.mina.io.filter.IoThreadPoolFilter$Worker.processEvent(IoThrea
> dPoolFilter.java:424)
>          at
> org.apache.mina.io.filter.IoThreadPoolFilter$Worker.processEvents(IoThre
> adPoolFilter.java:415)
>          at
> org.apache.mina.io.filter.IoThreadPoolFilter$Worker.run(IoThreadPoolFilt
> er.java:351)
> IoThreadPool-8 /192.168.0.101:33036: WRITTEN
> IoThreadPool-8 /192.168.0.101:33036: CLOSED
> Exception in thread "SocketIoProcessor"
> java.lang.IllegalStateException: Already released buffer.  Did you
> release the buffer more than once?
>          at
> org.apache.mina.common.ByteBuffer.release(ByteBuffer.java:126)
>          at
> org.apache.mina.io.socket.SocketSession.dispose(SocketSession.java:122)
>          at
> org.apache.mina.io.socket.SocketIoProcessor.removeSessions(SocketIoProce
> ssor.java:188)
>          at
> org.apache.mina.io.socket.SocketIoProcessor.access$500(SocketIoProcessor
> .java:41)
>          at
> org.apache.mina.io.socket.SocketIoProcessor$Worker.run(SocketIoProcessor
> .java:491)
> 
> This where obviously caused by my code, but the strange part (to me)
> was that the server
> after this stopped responding to any requests?
> 
> /Janne
> 
> 

I've just fixed it: http://svn.apache.org/viewcvs?view=rev&rev=151659

Could you svnup and retry?  Thanks in advance!

Cheers,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message