4
nacos 版本 v2.2.0 seata 版本 1.6.1
docker-compose
nacos 配置
application.yml
2023-04-22 17:56:34 09:56:34.149 INFO --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-04-22 17:56:34 09:56:34.151 INFO --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.62]
2023-04-22 17:56:34 09:56:34.257 INFO --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-04-22 17:56:34 09:56:34.259 INFO --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1627 ms
2023-04-22 17:56:34 09:56:34.348 ERROR --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [sub-server-error] dataId=store.db.branchTable, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, code=400
2023-04-22 17:56:34 09:56:34.353 WARN --- [ main] c.a.n.client.config.NacosConfigService : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [get-config] get from server error, dataId=store.db.branchTable, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, msg=ErrCode:400, ErrMsg:http error, code=400,dataId=store.db.branchTable,group=SEATA_GROUP,tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed
2023-04-22 17:56:34 09:56:34.356 WARN --- [ main] c.a.n.client.config.NacosConfigService : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [get-config] get snapshot ok, dataId=store.db.branchTable, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, config=
2023-04-22 17:56:34 09:56:34.363 ERROR --- [ main] c.a.n.client.config.impl.ClientWorker : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [sub-server-error] dataId=store.db.dbType, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, code=400
2023-04-22 17:56:34 09:56:34.365 WARN --- [ main] c.a.n.client.config.NacosConfigService : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [get-config] get from server error, dataId=store.db.dbType, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, msg=ErrCode:400, ErrMsg:http error, code=400,dataId=store.db.dbType,group=SEATA_GROUP,tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed
2023-04-22 17:56:34 09:56:34.367 WARN --- [ main] c.a.n.client.config.NacosConfigService : [fixed-nacos_standalone_mysql_8848-5aa1df41-2aa4-4707-b494-fe1d39ebb2ed] [get-config] get snapshot ok, dataId=store.db.dbType, group=SEATA_GROUP, tenant=5aa1df41-2aa4-4707-b494-fe1d39ebb2ed, config=
2023-04-22 17:56:34 09:56:34.372 WARN --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'branchSessionController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'branchSessionDBServiceImpl' defined in file [/seata-server/classes/io/seata/server/console/impl/db/BranchSessionDBServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.server.console.impl.db.BranchSessionDBServiceImpl$$EnhancerBySpringCGLIB$$91ac8763]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: store.db.dbType should not be blank
2023-04-22 17:56:34 09:56:34.379 INFO --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-04-22 17:56:34 09:56:34.454 INFO --- [ main] ConditionEvaluationReportLoggingListener :
2023-04-22 17:56:34
2023-04-22 17:56:34 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-04-22 17:56:34 09:56:34.475 ERROR --- [ main] o.s.boot.SpringApplication : Application run failed
2023-04-22 17:56:34 ==>
2023-04-22 17:56:34 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'branchSessionController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'branchSessionDBServiceImpl' defined in file [/seata-server/classes/io/seata/server/console/impl/db/BranchSessionDBServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.server.console.impl.db.BranchSessionDBServiceImpl$$EnhancerBySpringCGLIB$$91ac8763]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: store.db.dbType should not be blank
2023-04-22 17:56:34 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:332)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
2023-04-22 17:56:34 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
2023-04-22 17:56:34 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
2023-04-22 17:56:34 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
2023-04-22 17:56:34 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
2023-04-22 17:56:34 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448)
2023-04-22 17:56:34 at org.springframework.boot.SpringApplication.run(SpringApplication.java:339)
2023-04-22 17:56:34 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365)
2023-04-22 17:56:34 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354)
2023-04-22 17:56:34 at io.seata.server.ServerApplication.main(ServerApplication.java:30)
2023-04-22 17:56:34 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'branchSessionDBServiceImpl' defined in file [/seata-server/classes/io/seata/server/console/impl/db/BranchSessionDBServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.server.console.impl.db.BranchSessionDBServiceImpl$$EnhancerBySpringCGLIB$$91ac8763]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: store.db.dbType should not be blank
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
2023-04-22 17:56:34 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
2023-04-22 17:56:34 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:544)
2023-04-22 17:56:34 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:520)
2023-04-22 17:56:34 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:673)
2023-04-22 17:56:34 at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:228)
2023-04-22 17:56:34 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
2023-04-22 17:56:34 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessProperties(CommonAnnotationBeanPostProcessor.java:329)
2023-04-22 17:56:34 ... 17 common frames omitted
2023-04-22 17:56:34 Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.server.console.impl.db.BranchSessionDBServiceImpl$$EnhancerBySpringCGLIB$$91ac8763]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: store.db.dbType should not be blank
2023-04-22 17:56:34 at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
2023-04-22 17:56:34 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
2023-04-22 17:56:34 ... 33 common frames omitted
2023-04-22 17:56:34 Caused by: java.lang.IllegalArgumentException: store.db.dbType should not be blank
2023-04-22 17:56:34 at io.seata.server.console.impl.db.BranchSessionDBServiceImpl.<init>(BranchSessionDBServiceImpl.java:66)
2023-04-22 17:56:34 at io.seata.server.console.impl.db.BranchSessionDBServiceImpl$$EnhancerBySpringCGLIB$$91ac8763.<init>(<generated>)
2023-04-22 17:56:34 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2023-04-22 17:56:34 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2023-04-22 17:56:34 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2023-04-22 17:56:34 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2023-04-22 17:56:34 at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
2023-04-22 17:56:34 ... 35 common frames omitted
2023-04-22 17:56:34 <==
2023-04-22 17:56:34