springcloud第4季 seata报could not find any implementation for class

一 问题说明

1.1 描述

在使用seata2.0+alibaba-cloud 2022.0.0.0-RC2+nacos 2.2.3 模拟下订单分布式事务场景,出现如下问题:java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0

查看服务端:java.util.ServiceConfigurationError: com.alipay.sofa.jraft.rpc.RaftRpcFactory: could not find any implementation for class

1.2 原因

查看cloud版本和nacos,seata对应关系;总结问题,就是版本不兼容问题导致

关于seata-server异常could not find any implementation for class的踩坑解决情况_java.util.serviceconfigurationerror: com.alipay.so-CSDN博客

1.3 解决办法

1.将服务端seata版本从2.0降级到1.7,如下图

2.重试验证后,亲测得到解决

相关推荐
苍煜9 分钟前
SpringBoot Spring事务完整版详解:@Transactional注解实操 + 七大事务传播机制用法
spring boot·spring·oracle
云烟成雨TD28 分钟前
Spring AI 1.x 系列【29】Embedding Model(嵌入模型)
java·人工智能·spring
小码哥_常10 小时前
Spring Boot:别再重复造轮子,这些内置功能香麻了
后端
皮皮林55111 小时前
OpenFeign 首次调用卡 3 秒?八年老开发扒透 5 个坑,实战优化到 100ms!
后端
callJJ11 小时前
Spring Data Redis 两种编程模型详解:同步 vs 响应式
java·spring boot·redis·python·spring
phltxy12 小时前
Spring Cloud 分布式服务部署实战:从 0 到 1 实现微服务上线
spring·spring cloud·微服务
千寻girling12 小时前
《 Git 详细教程 》
前端·后端·面试
0xDevNull13 小时前
Linux 中 Nginx 代理 Redis 的详细教程
redis·后端
GetcharZp13 小时前
告别 Nginx 手动配置!这款 Go 语言开发的云原生网关,才是容器化时代的真香神器!
后端
RuoyiOffice14 小时前
SpringBoot+Vue3 企业考勤如何处理法定假期?节假日方案、调休补班与工作日判断链路拆解
spring boot·后端·vue·anti-design-vue·ruoyioffice·假期·人力