-
Notifications
You must be signed in to change notification settings - Fork 688
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
BootstrapApplicationListener.CloseContextOnFailureApplicationListener missing method implementation #552
Comments
Please show all your dependencies, you have an incompatible version of Framework |
Using springframework 5.0.8.RELEASE. I also tried older 4.3.18.RELEASE |
Spring Cloud Greenwich (2.1.x) is not compatible with spring boot 2.0.x and spring framework 5.0.x. Either update spring boot or downgrade spring cloud to Finchley. |
What version of spring framework is
|
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file. If so, we can reconsider reopening the issue. |
Let me see if I can write a tiny example with spring 5.1.x |
We are using a wrapper around spring-boot, so it will take me some time to generate a demo. Bottomline, this error reported is very straightforward. There is no need for a demo. Inner Class So any code using CloseContextOnFailureApplicationListener will definitely fail, because class CANNOT be instantiated (becomes kind of abstract). Other solution is to deprecate CloseContextOnFailureApplicationListener if applicable. |
But that only happens when there are incompatible versions on the classpath. |
spring-cloud 2,1,x should work with spring 5.1.x and probably also spring 5.0.x according to the release. |
Spring Framework 5.x requires java 8. Java 8 supports default methods in interfaces: Spring Cloud 2.x+ also requires java 8. |
Java 8 is being used. https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available The Spring Cloud Greenwich release train is considered a minor release and will continue support for the Spring Boot 2.x release branch. Probably need to update Release Notes. Thank you. I see I need spring boot 2.1.x. |
Using
does not work with spring.boot 4.3.18+ or 5.x
because class org.springframework.cloud.bootstrap.BootstrapApplicationListener.CloseContextOnFailureApplicationListener does not implement method SmartApplicationListener.supportsSourceType()
Current spring 5.1.6, org.springframework.context.event.SmartApplicationListener
still shows the method in question.
https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/event/SmartApplicationListener.html
Run error:
The text was updated successfully, but these errors were encountered: