0

ZK session redis共享,出现session序列化错误

asked 2018-06-15 12:50:58 +0800

glider gravatar image glider
1

在测试zk应用集群时session共享功能,使用shiro进行权限控制,redis集中存储session数据,可总是出现序列化数据错误,没明白什么意思,下面是一些错误提示,请指教,谢谢!

java.lang.IllegalStateException: org.apache.shiro.session.UnknownSessionException: org.crazycake.shiro.exception.SerializationException: serialize error, object=org.apache.shiro.session.mgt.SimpleSession,id=4a20d217-04b5-4222-8dfa-521589f85cc6

在redis中查看ression内容如下(二进制): \xAC\xED\x00\x05sr\x00*org.apache.shiro.session.mgt.SimpleSession\x9D\x1C\xA1\xB8\xD5\x8Cbn\x03\x00\x00xpw\x02\x00\xDBt\x00$4a20d217-04b5-4222-8dfa-521589f85cc6sr\x00\x0Ejava.util.Datehj\x81\x01KYt\x19\x03\x00\x00xpw\x08\x00\x00\x01d\x01\xC0\xAB\xF3xsq\x00~\x00\x03w\x08\x00\x00\x01d\x01\xC1/\xDDxw\x19\x00\x00\x00\x00\x00\x1Bw@\x00\x0F0:0:0:0:0:0:0:1sr\x00\x11java.util.HashMap\x05\x07\xDA\xC1\xC3\x16`\xD1\x03\x00\x02F\x00\x0AloadFactorI\x00\x09thresholdxp?@\x00\x00\x00\x00\x00\x0Cw\x08\x00\x00\x00\x10\x00\x00\x00\x01t\x00\x19javax.zkoss.zk.ui.Sessionsr\x00(org.zkoss.zk.ui.http.SerializableSession\x00\x00\x00\x00\x012g%\x03\x00\x00xppw\x04\x00\x00\x00\x00xxx

请不吝赐教,谢谢了!

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2018-06-15 12:50:58 +0800

Seen: 5 times

Last updated: Jun 15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More