Bladex新版本 4.8.0.RELEASE使用seata分布式后无法启动

Blade 未结 0 22

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

1. 根据手册接入seata的服务pom.xml引入分布式事务依赖

2. LauncherServiceImpl开启seata基础配置

3.程序启动器使用seata专用的注解 

4.然后无法启动服务


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

image.png

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

Bladex微服务  4.8.0.RELEASE版本,在windows10

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

***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 0 of method feignSentinelBuilder in org.springblade.core.cloud.sentinel.BladeSentinelAutoConfiguration required a single bean, but 2 were found:

- seataFeignRequestInterceptor: defined by method 'seataFeignRequestInterceptor' in class path resource [com/alibaba/cloud/seata/feign/SeataFeignClientAutoConfiguration.class]

- bladeFeignRequestInterceptor: defined by method 'bladeFeignRequestInterceptor' in class path resource [org/springblade/core/cloud/feign/BladeFeignAutoConfiguration.class]


This may be due to missing parameter name information


Action:


Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed


Ensure that your compiler is configured to use the '-parameters' flag.

You may need to update both your build tool settings as well as your IDE.

(See https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.1-Release-Notes#parameter-name-retention)



2026-03-10 11:41:16.523  WARN 33648 --- [           main] o.s.boot.SpringApplication               : Unable to close ApplicationContext


java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "this.closeables" is null

at org.springframework.boot.web.embedded.undertow.UndertowWebServer.destroy(UndertowWebServer.java:293)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:182)

at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1129)

at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:814)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:328)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59)

at org.springblade.system.SystemApplication.main(SystemApplication.java:42)


Exception in thread "SpringContextShutdownHook" java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "this.closeables" is null

at org.springframework.boot.web.embedded.undertow.UndertowWebServer.destroy(UndertowWebServer.java:293)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:182)

at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:1076)

Disconnected from the target VM, address: '127.0.0.1:51223', transport: 'socket'


Process finished with exit code 1

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

如果是以前的io.seata包好像不会发现,新版本的seata依赖好像换了。但根据文档就会发生这问题.


image.png

image.png

image.png

回答
  • 消灭零回复
提交回复