Nullrable opened a new issue #8564:
URL: https://github.com/apache/shardingsphere/issues/8564
Error starting ApplicationContext. To display the conditions report re-run
your application with 'debug' enabled.
2020-12-10 21:15:42.882 ERROR 36322 --- [ main]
o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'liquibase' defined in class path resource
[org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[liquibase.integration.spring.SpringLiquibase]: Factory method 'liquibase'
threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shardingSphereDataSource' defined in class path resource
[org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Bean
instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw
exception; nested exception is java.util.ServiceConfigurationError: org.a
pache.shardingsphere.transaction.spi.ShardingTransactionManager: Provider
org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager
could not be instantiated
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1161)
~[spring-context-5.3.1.jar:5.3.1]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915)
~[spring-context-5.3.1.jar:5.3.1]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
~[spring-context-5.3.1.jar:5.3.1]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
~[spring-boot-2.4.0.jar:2.4.0]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
~[spring-boot-2.4.0.jar:2.4.0]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
~[spring-boot-2.4.0.jar:2.4.0]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
~[spring-boot-2.4.0.jar:2.4.0]
at
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:122)
[spring-boot-test-2.4.0.jar:2.4.0]
at
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:244)
[spring-test-5.3.1.jar:5.3.1]
at
org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:99)
[spring-test-5.3.1.jar:5.3.1]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
~[na:1.8.0_111]
at
java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
~[na:1.8.0_111]
at
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
~[na:1.8.0_111]
at
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
~[na:1.8.0_111]
at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
~[na:1.8.0_111]
at
java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
~[na:1.8.0_111]
at
java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743)
~[na:1.8.0_111]
at
java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
~[na:1.8.0_111]
at
java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
~[na:1.8.0_111]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_111]
at
org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258)
[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31)
~[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101)
~[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100)
~[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65)
~[junit-jupiter-engine-5.7.0.jar:5.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_111]
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_111]
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
~[junit-platform-engine-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75)
~[junit-platform-launcher-1.7.0.jar:1.7.0]
at
com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:74)
~[junit5-rt.jar:na]
at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
~[junit-rt.jar:na]
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
~[junit-rt.jar:na]
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
~[junit-rt.jar:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to
instantiate [liquibase.integration.spring.SpringLiquibase]: Factory method
'liquibase' threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'shardingSphereDataSource' defined in class path resource
[org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Bean
instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw
exception; nested exception is java.util.ServiceConfigurationError:
org.apache.shardingsphere.transaction.spi.ShardingTransactionManager: Provider
org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager
could not be instantiated
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
~[spring-beans-5.3.1.jar:5.3.1]
... 88 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'shardingSphereDataSource' defined in class path
resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[javax.sql.DataSource]: Factory method 'shardingSphereDataSource' threw
exception; nested exception is java.util.ServiceConfigurationError:
org.apache.shardingsphere.transaction.spi.ShardingTransactionManager: Provider
org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager
could not be instantiated
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfUnique(DefaultListableBeanFactory.java:2050)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration$LiquibaseConfiguration.liquibase(LiquibaseAutoConfiguration.java:106)
~[spring-boot-autoconfigure-2.4.0.jar:2.4.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.8.0_111]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:1.8.0_111]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
~[spring-beans-5.3.1.jar:5.3.1]
... 89 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to
instantiate [javax.sql.DataSource]: Factory method 'shardingSphereDataSource'
threw exception; nested exception is java.util.ServiceConfigurationError:
org.apache.shardingsphere.transaction.spi.ShardingTransactionManager: Provider
org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager
could not be instantiated
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
~[spring-beans-5.3.1.jar:5.3.1]
at
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651)
~[spring-beans-5.3.1.jar:5.3.1]
... 107 common frames omitted
Caused by: java.util.ServiceConfigurationError:
org.apache.shardingsphere.transaction.spi.ShardingTransactionManager: Provider
org.apache.shardingsphere.transaction.base.seata.at.SeataATShardingTransactionManager
could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232) ~[na:1.8.0_111]
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
~[na:1.8.0_111]
at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
~[na:1.8.0_111]
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
~[na:1.8.0_111]
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
~[na:1.8.0_111]
at
org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.loadShardingTransactionManager(ShardingTransactionManagerEngine.java:49)
~[shardingsphere-transaction-core-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.transaction.ShardingTransactionManagerEngine.<init>(ShardingTransactionManagerEngine.java:45)
~[shardingsphere-transaction-core-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource.createTransactionContexts(ShardingSphereDataSource.java:82)
~[shardingsphere-jdbc-core-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource.<init>(ShardingSphereDataSource.java:59)
~[shardingsphere-jdbc-core-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.driver.api.ShardingSphereDataSourceFactory.createDataSource(ShardingSphereDataSourceFactory.java:49)
~[shardingsphere-jdbc-core-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.spring.boot.SpringBootConfiguration.shardingSphereDataSource(SpringBootConfiguration.java:73)
~[shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.spring.boot.SpringBootConfiguration$$EnhancerBySpringCGLIB$$6114a9f9.CGLIB$shardingSphereDataSource$1(<generated>)
~[shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar:5.0.0-alpha]
at
org.apache.shardingsphere.spring.boot.SpringBootConfiguration$$EnhancerBySpringCGLIB$$6114a9f9$$FastClassBySpringCGLIB$$aeed0c0d.invoke(<generated>)
~[shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar:5.0.0-alpha]
at
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
~[spring-core-5.3.1.jar:5.3.1]
at
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
~[spring-context-5.3.1.jar:5.3.1]
at
org.apache.shardingsphere.spring.boot.SpringBootConfiguration$$EnhancerBySpringCGLIB$$6114a9f9.shardingSphereDataSource(<generated>)
~[shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar:5.0.0-alpha]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.8.0_111]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:1.8.0_111]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
~[spring-beans-5.3.1.jar:5.3.1]
... 108 common frames omitted
Caused by: java.lang.NoClassDefFoundError:
io/seata/core/exception/TransactionException
## pom.xml
```
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
<version>5.0.0-alpha</version>
</dependency>
<!-- 使用 XA 事务时,需要引入此模块 -->
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-transaction-xa-core</artifactId>
<version>5.0.0-alpha</version>
</dependency>
<!-- 使用 BASE 事务时,需要引入此模块 -->
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-transaction-base-seata-at</artifactId>
<version>5.0.0-alpha</version>
</dependency>
```
## Code
```
@Configuration
@EnableTransactionManagement
public class DatasourceConfig {
@Bean
public PlatformTransactionManager txManager(final DataSource dataSource)
{
return new DataSourceTransactionManager(dataSource);
}
@Bean
public JdbcTemplate jdbcTemplate(final DataSource dataSource) {
return new JdbcTemplate(dataSource);
}
}
```
how to fix it?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]