incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

seata1.5.2和jdk18搭配使用会有seata中GlobalTransactionScanner无法实例化问题

Open M0rnar opened this issue 2 years ago • 3 comments

Seat搭建后,启动springboot报这个错,用的是jdk18 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalTransactionScanner' defined in class path resource [io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Factory method 'globalTransactionScanner' threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.18.jar:5.3.18] 换成jdk1.8后,springboot可以正常启动

M0rnar avatar Sep 06 '22 06:09 M0rnar

https://github.com/seata/seata/pull/4877

funky-eyes avatar Sep 06 '22 06:09 funky-eyes

https://github.com/seata/seata/issues/4864

haroldyong avatar Sep 14 '22 03:09 haroldyong

同样的问题 jdk17 也不行 只能是 jdk11 了

mgl-pub avatar Sep 18 '22 01:09 mgl-pub