paidalphabet / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

java.nio.channels.CancelledKeyException #231

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am getting the follwoing exception , what could normally cause this exception?

2012-11-11 17:54:50,626[qtp1593111626-20] ERROR(CheckFilter.java:<filter>:28)- 
SESSION Is : null
2012-11-11 17:59:50,618[qtp1593111626-52] ERROR(CheckFilter.java:<filter>:23)- 
Session Check Filter Invoked  - Request is  : [GET 
/ajax/refresh_session]@1620812446 org.eclipse.jetty.server.Request@609ba29e
2012-11-11 17:59:50,618[qtp1593111626-52] ERROR(CheckFilter.java:<filter>:28)- 
SESSION Is : null
2012-11-11 18:04:50,611[qtp1593111626-44] ERROR(CheckFilter.java:<filter>:23)- 
Session Check Filter Invoked  - Request is  : [GET 
/ajax/refresh_session]@1531063109 org.eclipse.jetty.server.Request@5b422b45
2012-11-11 18:04:50,612[qtp1593111626-44] ERROR(CheckFilter.java:<filter>:28)- 
SESSION Is : null
2012-11-11 18:09:50,604[qtp1593111626-52] ERROR(CheckFilter.java:<filter>:23)- 
Session Check Filter Invoked  - Request is  : [GET 
/ajax/refresh_session]@692969928 org.eclipse.jetty.server.Request@294de1c8
2012-11-11 18:09:50,604[qtp1593111626-52] ERROR(CheckFilter.java:<filter>:28)- 
SESSION Is : null
2012-11-11 18:14:47,231[Xmemcached-Reactor-1] 
ERROR(MemcachedHandler.java:<onExceptionCaught>:111)- XMemcached network layout 
exception
java.nio.channels.CancelledKeyException
        at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
        at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:59)
        at com.google.code.yanf4j.nio.impl.NioTCPSession.blockingRead(NioTCPSession.java:249)
        at com.google.code.yanf4j.nio.impl.NioTCPSession.readFromBuffer(NioTCPSession.java:210)
        at com.google.code.yanf4j.nio.impl.AbstractNioSession.onRead(AbstractNioSession.java:198)
        at com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.java:343)
        at com.google.code.yanf4j.nio.impl.SocketChannelController.dispatchReadEvent(SocketChannelController.java:56)
        at com.google.code.yanf4j.nio.impl.NioController.onRead(NioController.java:157)
        at com.google.code.yanf4j.nio.impl.Reactor.dispatchEvent(Reactor.java:294)
        at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:141)
2012-11-11 18:14:47,663[CustomerPushThreadpktest_439860] 
FATAL(MemcachedInterface.java:<get>:77)- Exception accessing memcache ::
net.rubyeye.xmemcached.exception.MemcachedException: Xmemcached is stopped
        at net.rubyeye.xmemcached.XMemcachedClient.sendCommand(XMemcachedClient.java:247)
        at net.rubyeye.xmemcached.XMemcachedClient.fetch0(XMemcachedClient.java:573)
        at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:971)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:929)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:940)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:962)
        at com.tradeking.at.util.MemcachedInterface.get(MemcachedInterface.java:75)
        at com.tradeking.at.servlet.PushThread.isAppError(PushThread.java:199)
        at com.tradeking.at.servlet.PushThread.run(PushThread.java:34)
2012-11-11 18:14:47,663[PushThreadtest_439860] 
FATAL(MemcachedInterface.java:<get>:77)- Exception accessing memcache ::
net.rubyeye.xmemcached.exception.MemcachedException: Xmemcached is stopped
        at net.rubyeye.xmemcached.XMemcachedClient.sendCommand(XMemcachedClient.java:247)
        at net.rubyeye.xmemcached.XMemcachedClient.fetch0(XMemcachedClient.java:573)
        at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:971)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:929)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:940)
        at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:962)

Original issue reported on code.google.com by SwathiSt...@gmail.com on 19 Nov 2012 at 1:15

GoogleCodeExporter commented 8 years ago
This happened when connection was disconnected,but it would not happen every 
time,in common you can ignore this exception.

But i found that you stop the xmemcached client,so the client will try to close 
all connections now are connected,so it may throw this exception when closing.

If you found this exception when you stop the client,you can just ignore it.

Original comment by killme2...@gmail.com on 21 Nov 2012 at 10:12