一、该问题的重现步骤是什么?
1. 租户Id不存在,CacheUtil.get 方法获取了一个全空字段的对象
2. feign 返回的数据结构
=============== Response Start ================ ===Result=== {"code":200,"success":true,"data":null,"msg":"暂无承载数据"} <=== GET: /feign/client/system/tenant-id (54 ms) =============== Response End ================
3. 实际获取的的数据结构
R(code=200, success=true, data=Tenant(tenantId=null, tenantCode=null, tenantName=null, domainUrl=null, backgroundUrl=null, linkman=null, contactNumber=null, address=null, accountNumber=null, expireTime=null, packageIds=null, datasourceId=null, licenseKey=null), msg=暂无承载数据)
二、你期待的结果是什么?实际看到的又是什么?
返回:
R(code=200, success=true, data=null, msg=暂无承载数据)
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
4.1.0
四、请提供详细的错误堆栈信息,这很重要。
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "org.springblade.system.pojo.entity.Tenant.getStatus()" is null at org.springblade.system.cache.SysCache.lambda$getTenant$19(SysCache.java:368) at org.springblade.core.cache.utils.CacheUtil.get(CacheUtil.java:222) at org.springblade.system.cache.SysCache.getTenant(SysCache.java:365) at org.springblade.system.service.impl.UserServiceImpl.submit(UserServiceImpl.java:98) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:355) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:768)
五、若有更多详细信息,请在下面提供。
官方新品
- 热议问题
-
物联网平台支持本地存储吗,不用minio
1
-
bladx admin、gateway等项目起不来
1
-
解决sql注入问题导致gateway无法启动,报错java.io.FileNotFoundException:WebMvcConfigurer.class
1
-
一个用户绑定多角色,在登陆后获取其并集
1
-
mvn clean compile 编译 BladeX-Tool 提示 ... /ojdbc7-12.2.0.1.pom 401 Unauthorized
2
-
gateway无法启动,报错java.io.FileNotFoundException:WebMvcConfigurer.class
1
-
cookie中token缺失HttpOnly和Secure属性
1
-
在nacos配置多数据库之后sql日志不能正常打印了
1
-
无法本地调试服务
1
-
启动流程设计器工程flowable-design,表act_id_property用的是版本6.5.0.1,需要引入哪些依赖
1
扫一扫访问 Blade技术社区 移动端