-
Notifications
You must be signed in to change notification settings - Fork 705
GenericScope and scopedTarget.dataSource circular reference #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you @a8t3r for your analyzed. I've confirmed that adding the property |
Setting |
It's working for me. Thanks you @spencergibb |
also setting |
This is a weird one. See also spring-projects/spring-boot#12280 for more weirdness. I find that we can "fix" this problem by simply declaring the |
The build was failing, ironically with the same circular reference originally reported here, so we had to revert that change. I'll carry on working on it. |
Same issue here... is the workaround of setting spring.cloud.refresh.enabled=false completely safe?... what are the apparent & non-apparent implications of setting this? |
This issue is closed with a fix. You should update to the latest stable release. |
@dsyer with Spring cloud Finchley SR1(openfeign) + Springboot 2.0.4(web, actuator) + H2 + initializeDB with schema.sql still got this issue .so which latest stable release solve this |
@mumutu66 can you provide a sample application that reproduces the problem please? We haven't seen it with the latest versions. |
There's a problem with that zip (maybe github munged it). Why not just put the sample in a project in github? |
@dsyer sorry. cuz the code is too basic... https://github.com/mumutu66/spring-sample.git |
I can reproduce the issue with that sample. It's fixed in Spring Boot 2.1.0 (and Spring Cloud Greenwich), but those are not released yet. If you need to use |
@dsyer thanks for your suggestion |
@mickknutson working on #395 currently. Moving dataSource configuration to a separate config has not previously been a workaround. |
Sorry guys, I moved my post to: spring-projects/spring-boot#12280 (comment) |
Thank you @spencergibb ! |
I’m working on the Spring Cloud Finchley upgrade of the Spring Petclinic Microservicres sample: spring-petclinic/spring-petclinic-microservices#72
The Spring Cloud dependencies has been moved from Edgware.SR1 to Finchley.M9.
All unit tests are passing.
At startup, the HSQLDB embedded database of micro-services is not populated (neither schema nor data).
When I test to remove the
spring-cloud-starter-config
dependency and use a local application.properties file, the database is populated.The problem only appears with Spring Cloud, when using a Config Server (Eureka in the Petclinic sample).
I suppose it may be caused by the
org.springframework.cloud.context.scope.GenericScope
When debug logging is enabled, I have the following stacktrace:
When I set the
spring.datasource.initialization-mode
parameter toalways
, the sample cannot start.You could see a circular dependency:
Do you have any idea? I'm note sure the issue comes from the
spring-cloud-commons
module.The text was updated successfully, but these errors were encountered: