dxlance11 commented on issue #7371:
URL: 
https://github.com/apache/incubator-seata/issues/7371#issuecomment-2909344962

   > 容器环境到底应该用哪个镜像仓库呢,apache/seata-server还是seataio/seata-server, 
好像并不是兼容的。使用apache/seata-server的2.4版本在k8s部署了raft集群模式,客户端连不上。
   
   Error starting ApplicationContext. To display the condition evaluation 
report re-run your application with 'debug' enabled.
   2025-05-26T16:42:44.953+08:00 ERROR 1 --- [ main] o.s.boot.SpringApplication 
: Application run failed
   
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalTransactionScanner' defined in class path resource 
[org/apache/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: 
Failed to instantiate 
[org.apache.seata.spring.annotation.GlobalTransactionScanner]: Factory method 
'globalTransactionScanner' threw exception with message: Cannot invoke 
"org.apache.seata.config.Configuration.addConfigListener(String, 
org.apache.seata.config.ConfigurationChangeListener)" because 
"originalConfiguration" is null
   at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:654)
   at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:642)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1330)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:558)
   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:518)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
   at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
   at 
org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:261)
   at 
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:796)
   at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:600)
   at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
   at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:746)
   at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
   at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1321)
   at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1310)
   at org.dxstudio.rate.DxStartApplication.main(DxStartApplication.java:13)
   at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown 
Source)
   at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
   at org.springframework.boot.loader.Launcher.launch(Launcher.java:95)
   at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
   at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.seata.spring.annotation.GlobalTransactionScanner]: 
Factory method 'globalTransactionScanner' threw exception with message: Cannot 
invoke "org.apache.seata.config.Configuration.addConfigListener(String, 
org.apache.seata.config.ConfigurationChangeListener)" because 
"originalConfiguration" is null
   at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:171)
   at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650)
   ... 25 common frames omitted
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.seata.config.Configuration.addConfigListener(String, 
org.apache.seata.config.ConfigurationChangeListener)" because 
"originalConfiguration" is null
   at 
org.apache.seata.config.ConfigurationCache.lambda$proxy$0(ConfigurationCache.java:88)
   at jdk.proxy2/jdk.proxy2.$Proxy100.getBoolean(Unknown Source)
   at 
org.apache.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:115)
   at 
org.apache.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:187)
   at 
org.apache.seata.spring.boot.autoconfigure.SeataAutoConfiguration.globalTransactionScanner(SeataAutoConfiguration.java:84)
   at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown 
Source)
   at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139)
   ... 26 common frames omitted


-- 
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