Spring-boot: Application failed to start Spring boot version 2.2 with bean creation failure on discoveryCompositeHealthIndicator

Created on 23 Oct 2019  路  6Comments  路  Source: spring-projects/spring-boot

After 2.2.0 upgrade application failed to start when running under k8 profile.


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

org.springframework.cloud.client.discovery.health.DiscoveryCompositeHealthIndicator.<init>(DiscoveryCompositeHealthIndicator.java:42)

The following method did not exist:

'void org.springframework.boot.actuate.health.CompositeHealthIndicator.<init>(org.springframework.boot.actuate.health.HealthAggregator)'

The method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:

invalid

Most helpful comment

https://start.spring.io/info tells you that at any point in time.

All 6 comments

You are using Spring Boot 2.2 with a Spring Cloud version that is incompatible with it (see the analysis report and the location of the error).

Thanks I am using Greenwich.SR3 , will check out which version of cloud that spring boot 2.2 supports.

https://start.spring.io/info tells you that at any point in time.

I have the same problem. I use Spring Boot 2.2.6 and Hoxton.SR4 Spring Cloud and still have the issue defined in the original comment.

@kdavid76 It sounds like you're still using a version of Spring Cloud Commons that is incompatible with Spring Boot 2.2. Specifically, you are using a version that does not contain this change. If you need some help figuring out why that is the case, please follow up on Stack Overflow or Gitter.

Hi @wilkinsona !

Yes, I was using an old version. I had the properties set up correctly, but my local Maven repository was corrupted or something. When I deleted the whole local repository and the build had to download everything, my application started up.

Was this page helpful?
0 / 5 - 0 ratings