You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cn.dev33.satoken.exception.SaTokenContextException: 未能获取有效的上下文
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getBoxNotNull(SaTokenContextForThreadLocalStorage.java:72) ~[sa-token-core-1.38.0.jar!/:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ springfox.boot.starter.autoconfigure.SwaggerUiWebFluxConfiguration$CustomWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ cn.dev33.satoken.reactor.filter.SaPathCheckFilterForReactor [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/api/app/di-studio/group/detail" [ExceptionHandlingWebHandler]
Original Stack Trace:
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getBoxNotNull(SaTokenContextForThreadLocalStorage.java:72) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getStorage(SaTokenContextForThreadLocalStorage.java:101) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaTokenContextForThreadLocal.getStorage(SaTokenContextForThreadLocal.java:49) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaHolder.getStorage(SaHolder.java:69) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.isSwitch(StpLogic.java:2595) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.getLoginIdDefaultNull(StpLogic.java:1012) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.isLogin(StpLogic.java:905) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpUtil.isLogin(StpUtil.java:315) ~[sa-token-core-1.38.0.jar!/:na]
希望结果:
复现步骤:
< 备注:如果复现步骤比较复杂,请将 demo 上传到 gitee 并留下地址 >
The text was updated successfully, but these errors were encountered:
使用版本:
1.38.0
pom文件如下:
调用代码如下:
报错信息:
cn.dev33.satoken.exception.SaTokenContextException: 未能获取有效的上下文
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getBoxNotNull(SaTokenContextForThreadLocalStorage.java:72) ~[sa-token-core-1.38.0.jar!/:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ springfox.boot.starter.autoconfigure.SwaggerUiWebFluxConfiguration$CustomWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ cn.dev33.satoken.reactor.filter.SaPathCheckFilterForReactor [DefaultWebFilterChain]
*__checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/api/app/di-studio/group/detail" [ExceptionHandlingWebHandler]
Original Stack Trace:
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getBoxNotNull(SaTokenContextForThreadLocalStorage.java:72) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaTokenContextForThreadLocalStorage.getStorage(SaTokenContextForThreadLocalStorage.java:101) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaTokenContextForThreadLocal.getStorage(SaTokenContextForThreadLocal.java:49) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.context.SaHolder.getStorage(SaHolder.java:69) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.isSwitch(StpLogic.java:2595) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.getLoginIdDefaultNull(StpLogic.java:1012) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpLogic.isLogin(StpLogic.java:905) ~[sa-token-core-1.38.0.jar!/:na]
at cn.dev33.satoken.stp.StpUtil.isLogin(StpUtil.java:315) ~[sa-token-core-1.38.0.jar!/:na]
希望结果:
复现步骤:
< 备注:如果复现步骤比较复杂,请将 demo 上传到 gitee 并留下地址 >
The text was updated successfully, but these errors were encountered: