Skip to content
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

Application fails to start when using Spring Boot 3.1.x version with spring cloud aws 3.0.2 and cloud openfeign #936

Closed
firatsivrikaya opened this issue Nov 2, 2023 · 1 comment

Comments

@firatsivrikaya
Copy link

firatsivrikaya commented Nov 2, 2023

Type: Bug

Component:
io.awspring.cloud:spring-cloud-aws-dependencies:3.0.2

Describe the bug
Application fails to start when using Spring Boot 3.1.x, spring cloud aws 3.0.2 and cloud openfeign with following error

2023-11-02T15:46:14.675+03:00 WARN 33392 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compositeCompatibilityVerifier' defined in class path resource [org/springframework/cloud/configuration/CompatibilityVerifierAutoConfiguration.class]: Failed to instantiate [org.springframework.cloud.configuration.CompositeCompatibilityVerifier]: Factory method 'compositeCompatibilityVerifier' threw exception with message: Spring Cloud/ Spring Boot version compatibility checks have failed: [[VerificationResult@42f9c19a description = 'Spring Boot [3.1.5] is not compatible with this Spring Cloud release train', action = 'Change Spring Boot version to one of the following versions [3.0.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]']]
2023-11-02T15:46:14.685+03:00 INFO 33392 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-11-02T15:46:14.704+03:00 ERROR 33392 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Your project setup is incompatible with our requirements due to following reasons:

  • Spring Boot [3.1.5] is not compatible with this Spring Cloud release train

Action:

Consider applying the following actions:

  • Change Spring Boot version to one of the following versions [3.0.x] .
    You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
    If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
    If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]

Disconnected from the target VM, address: '127.0.0.1:57423', transport: 'socket'

Process finished with exit code 1

Sample
sample application that reproduces the problem
https://github.com/firatsivrikaya/boot3.1.x-cloud-openfeign-awscloud-startup-issue

If I downgrade spring boot version to 3.0.11, application successfully starts.

PS: I don't know for sure if this is about spring cloud aws or spring cloud/open-feign
If I only include spring cloud aws, everything works, also; If I only include openfeign, everything works again. Somehow when I try to use both, application fails

@maciejwalkowiak
Copy link
Contributor

@firatsivrikaya thanks for reporting. If you flip the order of dependencies it works as expected:

dependencyManagement {
	imports {
		mavenBom 'io.awspring.cloud:spring-cloud-aws-dependencies:3.0.2'
		mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
	}
}

This has been fixed in #916 and will be released in 3.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants