poisonduyao opened a new issue, #7927:
URL: https://github.com/apache/incubator-seata/issues/7927

   ### Check Ahead
   
   - [x] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   - [ ] I am willing to try to fix this bug myself.
   
   
   ### Ⅰ. Issue Description
   
   seata 2.3.0-2.5.0均使用的是snakeyaml 
2.0版本,使用老版spring的时候没有有参构造方法,导致如果配置中心配置为yaml格式就会出现没有找到方法的报错,如果强行把snakeyaml  2.0 
由于2.0去除了无参构造方法导致spring无法成功解析yaml,这种兼容问题是不是需要处理一下
   
   ### Ⅱ. Describe what happened
   
   2026-01-09 15:51:45.662  [trobs-oms] [main] [,]  WARN [trobs-oms,,,] 37964 
--- [           main] ConfigServletWebServerApplicationContext : Exception 
encountered during context initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalTransactionScanner' defined in class path resource 
[org/apache/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: Bean 
instantiation via factory method failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seata.spring.annotation.GlobalTransactionScanner]: Factory method 
'globalTransactionScanner' threw exception; nested exception is 
java.lang.NoSuchMethodError: 
org.yaml.snakeyaml.constructor.SafeConstructor.<init>(Lorg/yaml/snakeyaml/LoaderOptions;)V
   
   
   ### Ⅲ. Describe what you expected to happen
   
   _No response_
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   _No response_
   
   ### Ⅴ. Anything else we need to know?
   
   _No response_
   
   ### Ⅵ. Environment
   
   seata2.3-2.5通病 snakeyaml 1.9


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to