-
Notifications
You must be signed in to change notification settings - Fork 585
Description
报错的日志如下:
09:14:26.000 [main] DEBUG io.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader - The same extension io.seata.config.file.SimpleFileConfig has already been loaded, skipped
09:14:26.000 [main] DEBUG io.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader - The same extension io.seata.config.file.YamlFileConfig has already been loaded, skipped
09:14:26.014 [main] DEBUG io.seata.config.FileConfiguration - The file name of the operation is registry
09:14:26.018 [main] INFO io.seata.config.ConfigurationFactory - load Configuration from :Spring Configuration
09:14:26.019 [main] WARN org.springframework.context.support.ClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.seata.spring.annotation.GlobalTransactionScanner#0' defined in class path resource [spring/seata-tcc.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
09:14:26.026 [main] ERROR org.apache.zookeeper.server.NIOServerCnxnFactory - Thread Thread[#1,main,5,main] died
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'io.seata.spring.annotation.GlobalTransactionScanner#0' defined in class path resource [spring/seata-tcc.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1308)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1154)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:228)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:707)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:95)
at io.seata.samples.tcc.transfer.starter.TransferProviderStarter.main(TransferProviderStarter.java:21)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:184)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)
... 15 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:108)
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:154)
at io.seata.spring.annotation.GlobalTransactionScanner.(GlobalTransactionScanner.java:143)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
... 17 common frames omitted
Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.core.env.ConfigurableEnvironment.getProperty(String, java.lang.Class)" because "environment" is null
at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.getConfigFromEnvironment(SpringBootConfigurationProvider.java:239)
at io.seata.spring.boot.autoconfigure.provider.SpringBootConfigurationProvider.lambda$provide$0(SpringBootConfigurationProvider.java:76)
at jdk.proxy2/jdk.proxy2.$Proxy3.getConfig(Unknown Source)
at io.seata.config.ConfigurationFactory.getConfigType(ConfigurationFactory.java:130)
at io.seata.config.ConfigurationFactory.maybeNeedOriginFileInstance(ConfigurationFactory.java:120)
at io.seata.config.ConfigurationFactory.(ConfigurationFactory.java:55)
... 24 common frames omitted
是哪里配置有问题么?