directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Andersson <ja...@minq.se>
Subject [mina] Exceptions causing server to "die"?
Date Sun, 06 Feb 2005 22:51:27 GMT
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


Mime
View raw message