You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "poisonduyao (via GitHub)" <gi...@apache.org> on 2026/01/09 07:53:40 UTC
[I] snakeyaml 的兼容问题 [incubator-seata]
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: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] snakeyaml 的兼容问题 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7927:
URL: https://github.com/apache/incubator-seata/issues/7927#issuecomment-3729176503
I believe we should no longer maintain compatibility with snakeyaml 1.9. When downgrading to snakeyaml 1.9, it lacks any parameterized constructors, so this compatibility issue isn't really caused by Seata itself — it's a problem originating from snakeyaml . If someone wants to use a newer version of Seata, they should also upgrade their Spring version accordingly.
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] snakeyaml 的兼容问题 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #7927:
URL: https://github.com/apache/incubator-seata/issues/7927#issuecomment-3727818130
Could you please provide the full stack trace?
This will help us pinpoint exactly where the compatibility issue is occurring.
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] snakeyaml 的兼容问题 [incubator-seata]
Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #7927: snakeyaml 的兼容问题
URL: https://github.com/apache/incubator-seata/issues/7927
--
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: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org