Memcached connection drop will cause excpetion: Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Cancelled

585 views
Skip to first unread message

严细浪

unread,
Aug 13, 2012, 9:02:21 PM8/13/12
to spymem...@googlegroups.com
I am using memcached-session-manager, which is memcached based tomcat session manager.

The problem I met is when the connection to memcached dropper, it will get exception, and current request is cancelled, which make a new tomcat session is created. That's not the behavior I want. My assumption is the connection to memcached should establish automatically and continue the current request once it's done, the current request should not be cancelled.
I
post a topic at https://groups.google.com/forum/?fromgroups#!topic/memcached-session-manager/JyN90yLpbG8, but they think I should post the question here.

exception stack;
Aug 10, 2012 4:22:23 AM de.javakaffee.web.msm.
LockingStrategy onBackupWithoutLoadedSession
WARNING: An error when trying to load/update validity info.
java.lang.RuntimeException: Exception waiting for value
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1183)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1200)
    at de.javakaffee.web.msm.LockingStrategy.loadSessionValidityInfoForValidityKey(LockingStrategy.java:337)
    at de.javakaffee.web.msm.LockingStrategy.onBackupWithoutLoadedSession(LockingStrategy.java:228)
    at de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:1031)
    at de.javakaffee.web.msm.RequestTrackingHostValve.backupSession(RequestTrackingHostValve.java:229)
    at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:154)
    at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:151)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:182)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Cancelled
    at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:84)
    at net.spy.memcached.internal.GetFuture.get(GetFuture.java:38)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1178)
    ... 18 more
Caused by: java.lang.RuntimeException: Cancelled
    ... 21 more



Reply all
Reply to author
Forward
0 new messages