spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.87k stars 2.44k forks source link

Spring Cloud Netflix Hystrix (Finchley.M2) is incompatible with Spring Boot Actuator (2.0.0.M4) #2278

Closed juergenzimmermann closed 7 years ago

juergenzimmermann commented 7 years ago

As soon as I add org.springframework.boot:spring-boot-starter-actuator in build.gradle I'm getting the following log output when I start a microservice based on Spring Boot, Spring Webflux, Spring Data MongoDB, Spring Security Webflux etc.

[...]
INFO  [o.s.c.a.AnnotationUtils] [main] Failed to introspect annotations on [class org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration$$EnhancerBySpringCGLIB$$51330790]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
INFO  [o.s.c.a.AnnotationUtils] [main] Failed to introspect annotations on [class org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration$$EnhancerBySpringCGLIB$$51330790]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
WARN  [o.s.b.w.r.c.ReactiveWebServerApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start reactive web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpHandler' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/HttpHandlerAutoConfiguration$AnnotationConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.server.reactive.HttpHandler]: Factory method 'httpHandler' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webHandler' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration$EnableWebFluxConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration$EnableWebFluxConfiguration.class]: Invocation of init method failed; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
ryanjbaxter commented 7 years ago

Finchley.M2 was meant to work with Boot 2.0.0.M3. We recently just started looking at upgrading to the latest Boot milestone and realize there are some breaking changes. We will address these soon.

n0mer commented 6 years ago

@ryanjbaxter any luck / progress so far ? spring-boot 2.0.0.RC1 is out recently

spencergibb commented 6 years ago

@n0mer We've had 4 more milestones since. M6(announcement pending) works with RC1. Next time please ask on gitter, not a closed issue.

n0mer commented 6 years ago

@spencergibb ok

Starters for Eureka still on M2 (http://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-starter-eureka/ , http://repo.spring.io/milestone/org/springframework/cloud/spring-cloud-starter-eureka-server/), hence was my question