apache / apache/incubator-seata-samples

springcloud-eureka-seata启动报错

Open
#168 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

2019-07-02 12:09:52.560 WARN 29440 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceProxy' defined in io.seata.sample.AccountApplication: Unsatisfied dependency expressed through method 'dataSourceProxy' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in io.seata.sample.AccountApplication: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'dataSourceProxy': Requested bean is currently in creation: Is there an unresolvable circular reference?
2019-07-02 12:09:52.563 INFO 29440 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-07-02 12:09:52.598 INFO 29440 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-07-02 12:09:52.605 ERROR 29440 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :

***************************
APPLICATION FAILED TO START
***************************

Description:

The dependencies of some of the beans in the application context form a cycle:

org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
┌─────┐
| dataSourceProxy defined in io.seata.sample.AccountApplication
↑ ↓
| dataSource defined in io.seata.sample.AccountApplication
↑ ↓
| dataSourceInitializer
└─────┘

Process finished with exit code 1

Contributor guide

Open the contributing guide

Research direction

Start with the dataSourceProxy, dataSource, and dataSourceInitializer definitions in io.seata.sample.AccountApplication, then reproduce the reported application startup failure. Trace the circular dependency shown in the log; done means the sample starts successfully without the reported bean-creation cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.