menu/top-menu ERROR [XNIO-1 task-230] o.s.c.l.e.BladeRestExceptionTranslator : 服务器异常

Blade 未结 2 1185
guoqingshan
guoqingshan 剑圣 2021-03-09 07:52

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

1. 

2. 突然运行报错?把redis 中 dataScope:class:org.springblade.system.mapper.DictMapper.getList:  清空,又正常了。会 反复出现

================  Response Start  ================

<=== GET: /menu/top-menu (7 ms)

================   Response End   ================


2021-03-09 07:46:14.734 ERROR 48923 --- [XNIO-1 task-230] o.s.c.l.e.BladeRestExceptionTranslator   : 服务器异常


org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

### Error querying database.  Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen).

### The error may exist in org/springblade/system/mapper/TopMenuMapper.java (best guess)

### The error may involve org.springblade.system.mapper.TopMenuMapper.selectList

### The error occurred while executing a query

### Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen).

        at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)

        at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)

        at com.sun.proxy.$Proxy174.selectList(Unknown Source)

        at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)

        at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177)

        at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78)

        at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96)

        at com.sun.proxy.$Proxy220.selectList(Unknown Source)

        at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:275)

        at com.baomidou.mybatisplus.extension.service.IService$$FastClassBySpringCGLIB$$f8525d18.invoke(<generated>)

        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)

        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:752)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

        at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:119)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

3.


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


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

2.6.0  linux 

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


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

2条回答
  • 数据序列化和反序列化方式不一致导致

    0 讨论(0)
  • 2021-03-09 11:06

    看你提供的datascope和topmenu应该没有关系才对,为何会有影响。是你给这个接口添加了数据权限么?如果有的话,把数据权限的配置先删除一下,再清一下缓存看看。

    另外再排查一下是否对redis有过拓展,看看是否序列化与反序列化方式一致

    0 讨论(0)
提交回复