Closed nikita-efremov1 closed 1 year ago
We don't need the "service auto registration" functionality, so we turned it off by setting up the parameter "spring.cloud.service-registry.auto-registration.enabled=false". After that consul integration became work without errors.
But this still seems to be an issue and should be fixed/investigated. Could you please reopen the issue? The same issue is also posted on the spring-boot repo: https://github.com/spring-projects/spring-boot/issues/33248
Hello, @nikita-efremov1, thanks for reporting the issue. We do have a basic sample test with Spring Cloud Consul that is not reporting any issues, so if you're still facing the issue with the newest Spring Boot and Spring Cloud version, please provide a minimal, complete, verifiable example that reproduces the issue.
@d-eder that was a different issue altogether (adding AOT and native support for SC OF in the first place) and has been implemented before the GA release.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Hello, @OlgaMaciaszek. Thanks for answering!
I have added the test project which reporting the issue. The problem appeared after adding dependencies "spring-retry" and "spring-cloud-starter-openfeign". Before adding these dependencies the proxy class file (look at the stacktrace above) is not generated and we don't see the error. After reproducing the problem and publishing the github project I checked that using "spring-boot-starter-parent:3.0.4" version helped solving the problem. It seems to me that we can close the issue.
Thanks, @nikita-efremov1. Closing as already fixed.
Describe the bug We have a spring6 application that compiled into graalvm native image and run in a docker environment. After we turned on consul integration application couldn't start due to error. Application is started successfully while using "java -jar application.jar" and "java -Dspring.aot.enabled=true -jar application.jar".
System Info:
Oracle linux 7.9
]GraalVM CE 22.3.0
]OpenJDK 17.0.5
]3.0.0
]6.0.2
]2022.0.0
]Stack trace
Full application logs