3.2K Star 13.2K Fork 6.9K

GVPstylefeng / Guns

 / 详情

切换redisi报错

Backlog
Opened this issue  
2021-09-07 18:52

参考issue #I3XEQ3:guns 7 会话管理切换redis后 启动报错 ClearInvalidLoginUserCacheTimer 无法创建bean

覆盖代码。

覆盖代码

报错位置。
输入图片说明

说好的覆盖配置后自动配置,你却调用了this。 :sleeping:

Comments (1)

刘葫芦 created任务
刘葫芦 set related repository to stylefeng/Guns
刘葫芦 changed description
Expand operation logs

如果继续覆盖异常bean。
输入图片说明

可以正常启动,但登录会出现如下异常。依然无法正常使用程序。

java.lang.NullPointerException: null
at org.springframework.data.redis.core.AbstractOperations.rawKey(AbstractOperations.java:112)
at org.springframework.data.redis.core.DefaultValueOperations.set(DefaultValueOperations.java:253)
at org.springframework.data.redis.core.DefaultBoundValueOperations.set(DefaultBoundValueOperations.java:131)
at cn.stylefeng.roses.kernel.cache.redis.AbstractRedisCacheOperator.put(AbstractRedisCacheOperator.java:58)
at cn.stylefeng.roses.kernel.auth.session.DefaultSessionManager.createSession(DefaultSessionManager.java:90)
at cn.stylefeng.roses.kernel.auth.auth.AuthServiceImpl.loginAction(AuthServiceImpl.java:332)
at cn.stylefeng.roses.kernel.auth.auth.AuthServiceImpl.login(AuthServiceImpl.java:118)
at cn.stylefeng.roses.kernel.system.modular.user.controller.LoginController.login(LoginController.java:77)
at cn.stylefeng.roses.kernel.system.modular.user.controller.LoginController$$FastClassBySpringCGLIB$$584b8672.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
at cn.stylefeng.roses.kernel.log.requestapi.RequestApiLogRecordAop.aroundPost(RequestApiLogRecordAop.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(1)
70060 liuhulu 1591519754
Java
1
https://gitee.com/stylefeng/guns.git
git@gitee.com:stylefeng/guns.git
stylefeng
guns
Guns

Search

233307 c1314fcc 1850385 233305 0212f5e2 1850385