2 gokeiryou263 gokeiryou263 于 2014.12.01 12:25 提问

移动设备调用Web应用使用RedisSession机制报错ERR DISCARD without MULTI

1.应用web服务是提供给手机访问的,所以网络为无线网络
2.使用的Session机制是redis工具包,多个节点Session配置为共享
import com.ovea.jetty.session.redis.RedisSessionIdManager;
import com.ovea.jetty.session.redis.RedisSessionManager;
3.目前发现移动设备调用该应用,报以下错误后会不断增加报错频率直至无法访问

感谢兄弟姐妹们提供解决方案及宝贵经验,及等回复哦

2014-11-20 13:06:59,919 11365654 [qtp599675908-87] WARN com.ovea.jetty.session (RedisSessionManager.java:326) - [RedisSessionManager] complete - Problem persisting changed session data id=
site1inixlbw1nwgp1p74pactwwc30
redis.clients.jedis.exceptions.JedisDataException: ERR DISCARD without MULTI
at redis.clients.jedis.Protocol.processError(Protocol.java:54)
at redis.clients.jedis.Protocol.process(Protocol.java:61)
at redis.clients.jedis.Protocol.read(Protocol.java:122)
at redis.clients.jedis.Connection.getAll(Connection.java:207)
at redis.clients.jedis.BinaryTransaction.discard(BinaryTransaction.java:38)
at redis.clients.jedis.BinaryJedis.multi(BinaryJedis.java:1644)
at com.ovea.jetty.session.redis.RedisSessionManager$3.execute(RedisSessionManager.java:184)
at com.ovea.jetty.session.redis.PooledJedisExecutor.execute(PooledJedisExecutor.java:36)
at com.ovea.jetty.session.redis.RedisSessionManager.storeSession(RedisSessionManager.java:179)
at com.ovea.jetty.session.redis.RedisSessionManager$RedisSession.complete(RedisSessionManager.java:323)
at org.eclipse.jetty.server.session.AbstractSessionManager.complete(AbstractSessionManager.java:186)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:203)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:350)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
at java.lang.Thread.run(Thread.java:744)

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!