扯淡的bug--shiro
来源:互联网 发布:painter软件 编辑:程序博客网 时间:2024/05/17 23:04
Exception in thread "taskExecutor-5" org.apache.shiro.session.InvalidSessionException: java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.shiro.web.session.HttpServletSession.getAttribute(HttpServletSession.java:148) at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) at org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipalsStack(DelegatingSubject.java:469) at org.apache.shiro.subject.support.DelegatingSubject.getPrincipals(DelegatingSubject.java:153) at org.apache.shiro.subject.support.DelegatingSubject.getPrincipal(DelegatingSubject.java:149) at com.mg.background.common.utils.UserUtils.getPrincipal(UserUtils.java:121) at com.mg.background.common.utils.UserUtils.getUser(UserUtils.java:30) at com.mg.background.common.persistence.BaseDataEntity.preInsert(BaseDataEntity.java:20) at com.mg.background.friend.service.MatchService.matchUserInfoById(MatchService.java:99) at com.mg.background.friend.service.MatchService$$FastClassBySpringCGLIB$$d6c1ef20.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:718) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.in
在进行Subject subject = SecurityUtils.getSubject();
操作的时候报了上面这个错误
https://issues.apache.org/jira/browse/SHIRO-298 这是官方给出的解决方案.
阅读全文
0 0
- 扯淡的bug--shiro
- 扯淡的bug--redis
- 扯淡的人生
- 扯淡生活的动力
- 扯淡的人生
- 关于C++的扯淡
- 送给初学者的扯淡
- 扯淡的工作
- C++的扯淡
- 少有的一次扯淡
- 扯淡数据仓库的价值
- 扯淡
- 扯淡
- 扯淡
- 扯淡
- 扯淡
- 扯淡
- 扯淡
- pointerArray
- poj-1979-Red and Black
- mac上Python多版本共存
- js笔记
- C# 数据库 There is already an open DataReader associated with this Command which must b
- 扯淡的bug--shiro
- springboot 发送邮件
- 进程池与线程池---实现服务器
- js设计模式之 --工厂模式
- 学习Linux命令(44)
- 最短路算法包
- [HAOI2005]BZOJ1055 玩具取名
- 使用OpenCV的OpenCL(ocl)模块
- wamp黄色问题解决