从版本3.2.0升级到3.4.0出现的问题

Blade 未结 2 551
david4liu
david4liu 剑者 2024-01-03 07:53

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

1. 是通过文件比较的方式升级到3.4.0

2. 升级了mysql-update.3.3.0/3.4.0



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

期望升级功能正常,现在是能正常登录,仅有部份功能正常

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

blade-boot、3.2.0、在win 11

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

之前的bladex-boot版本为3.2.0能正常运行,通过文件比对的方式,升级到3.4.0版本,数据库mysql是从3.3.0.3.3.1.3.4.0的updtae-sql一个一个执行下来,能正常登录,现在发现如下几个问题报错,是不是存在版本问题呢,还是这次版本要汲及数据调整redis呢?:
系统模块:http://localhost:2888/api/blade-system/dict/dictionary?code=flow

{

    "code": 500,

    "success": false,

    "data": {},

    "msg": "nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.  Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen).\r\n### Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen)."

}

系统模块: http://localhost:2888/api/blade-system/menu/top-menu

{

    "code": 500,

    "success": false,

    "data": {},

    "msg": "nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.  Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen).\r\n### Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen)."

}

业务模块:http://localhost:2888/api/sfads/room/list?current=1&size=10

{

    "code": 500,

    "success": false,

    "data": {},

    "msg": "nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error querying database.  Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen).\r\n### Cause: java.lang.RuntimeException: Reading from a byte array threw an IOException (should never happen)."

}

业务模块后台报如下错误异常:

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).

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

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

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

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

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

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

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

at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)

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

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

at com.baomidou.mybatisplus.core.mapper.BaseMapper.selectPage(BaseMapper.java:348)

at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)

at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$DefaultMethodInvoker.invoke(MybatisMapperProxy.java:166)

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

at com.sun.proxy.$Proxy218.selectPage(Unknown Source)

at com.baomidou.mybatisplus.extension.service.IService.page(IService.java:448)

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:792)

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

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)

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

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

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)

at org.springblade.modules.sfads.room.service.impl.RoomServiceImpl$$EnhancerBySpringCGLIB$$fe6aabcd.page(<generated>)

at org.springblade.modules.sfads.room.controller.RoomController.list(RoomController.java:79)


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

2条回答
  • 2024-01-03 09:54

    版本升级有bean变动,之前的bean保存在redis,升级后新的bean加载老版本的缓存,序列化对不上自然就报错了。

    你清空redis缓存再重新访问系统就行。

    1 讨论(0)
  • 2024-01-03 22:54

    image.png

    升级之后出现一个null的缓存呢,是不是一个bug?

    0 讨论(0)
提交回复