升级2.7.2后,用户管理空指针

Blade 已结 2 1486
lingxi
lingxi 2021-02-01 18:04
悬赏:5

一、该问题的重现步骤是什么?

  1. 系统管理-用户管理,点击空指针

  2. image.png

2. 下图323行代码包空指针image.png

3.


二、你期待的结果是什么?实际看到的又是什么?

期待正常显示用户列表

实际看到后台报空指针


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

正在使用bladex商业版(本账号已绑定购买邮箱)

版本2.7.2

windows操作系统


四、请提供详细的错误堆栈信息,这很重要。

java.lang.RuntimeException: java.lang.ClassNotFoundException: org.springblade.modules.system.entity.Tenant

at io.protostuff.runtime.RuntimeEnv.loadClass(RuntimeEnv.java:258)

at io.protostuff.runtime.DefaultIdStrategy.getSchemaWrapper(DefaultIdStrategy.java:185)

at io.protostuff.runtime.DefaultIdStrategy.resolvePojoFrom(DefaultIdStrategy.java:524)

at io.protostuff.runtime.ObjectSchema.readObjectFrom(ObjectSchema.java:682)

at io.protostuff.runtime.ObjectSchema.mergeFrom(ObjectSchema.java:350)

at io.protostuff.ByteArrayInput.mergeObjectEncodedAsGroup(ByteArrayInput.java:518)

at io.protostuff.ByteArrayInput.mergeObject(ByteArrayInput.java:490)

at io.protostuff.runtime.RuntimeUnsafeFieldFactory$15$1.mergeFrom(RuntimeUnsafeFieldFactory.java:1217)

at io.protostuff.runtime.RuntimeSchema.mergeFrom(RuntimeSchema.java:466)

at io.protostuff.IOUtil.mergeFrom(IOUtil.java:45)

at io.protostuff.ProtostuffIOUtil.mergeFrom(ProtostuffIOUtil.java:104)

at org.springblade.core.redis.serializer.ProtoStuffSerializer.deserialize(ProtoStuffSerializer.java:59)

at org.springframework.data.redis.serializer.DefaultRedisElementReader.read(DefaultRedisElementReader.java:48)

at org.springframework.data.redis.serializer.RedisSerializationContext$SerializationPair.read(RedisSerializationContext.java:272)

at org.springframework.data.redis.cache.RedisCache.deserializeCacheValue(RedisCache.java:260)

at org.springframework.data.redis.cache.RedisCache.lookup(RedisCache.java:94)

at org.springframework.cache.support.AbstractValueAdaptingCache.get(AbstractValueAdaptingCache.java:58)

at org.springblade.core.cache.utils.CacheUtil.get(CacheUtil.java:188)

at org.springblade.core.cache.utils.CacheUtil.get(CacheUtil.java:168)

at org.springblade.system.cache.SysCache.getTenant(SysCache.java:323)

at org.springblade.system.user.wrapper.UserWrapper.entityVO(UserWrapper.java:46)

at org.springblade.system.user.wrapper.UserWrapper.entityVO(UserWrapper.java:37)

at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)

at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)

at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)

at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)

at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)

at org.springblade.core.mp.support.BaseEntityWrapper.listVO(BaseEntityWrapper.java:47)

at org.springblade.core.mp.support.BaseEntityWrapper.pageVO(BaseEntityWrapper.java:57)

at org.springblade.system.user.controller.UserController.page(UserController.java:125)




java.lang.NullPointerException: null

at org.springblade.system.user.wrapper.UserWrapper.entityVO(UserWrapper.java:50)

at org.springblade.system.user.wrapper.UserWrapper.entityVO(UserWrapper.java:37)

at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)

at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)

at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)

at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)

at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)

at org.springblade.core.mp.support.BaseEntityWrapper.listVO(BaseEntityWrapper.java:47)

at org.springblade.core.mp.support.BaseEntityWrapper.pageVO(BaseEntityWrapper.java:57)

at org.springblade.system.user.controller.UserController.page(UserController.java:125)


五、若有更多详细信息,请在下面提供。

2条回答
  •  admin
    admin (楼主)
    2021-02-02 10:38

    系统跑过cloud然后再跑boot,或者反过来,都需要清理redis缓存

提交回复