You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/09/26 08:50:00 UTC

[jira] [Resolved] (CAMEL-11826) [example] hystrix, opentracing - spring-boot:run throws NPE

     [ https://issues.apache.org/jira/browse/CAMEL-11826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-11826.
---------------------------------
    Resolution: Fixed
      Assignee: Claus Ibsen

hystrix also works

> [example] hystrix, opentracing - spring-boot:run throws NPE
> -----------------------------------------------------------
>
>                 Key: CAMEL-11826
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11826
>             Project: Camel
>          Issue Type: Sub-task
>          Components: examples
>            Reporter: Tomohisa Igarashi
>            Assignee: Claus Ibsen
>             Fix For: 2.20.0
>
>
> {code}
> 2017-09-22 20:16:29.684 ERROR 19603 --- [           main] o.s.boot.SpringApplication               : Application startup failed
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cacheAutoConfigurationValidatorPostProcessor' defined in class path resource [org/apache/camel/component/http/springboot/HttpComponentSSLAutoConfiguration.class]: Unsatisfied dependency expressed through method 'cacheAutoConfigurationValidatorPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camelContext' defined in class path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.camel.CamelContext]: Factory method 'camelContext' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'routesHealthCheckRepository' defined in class path resource [org/apache/camel/spring/boot/health/HealthCheckRoutesAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.camel.health.HealthCheckRepository]: Factory method 'routesHealthCheckRepository' threw exception; nested exception is java.lang.NullPointerException
> 	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
> 	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:467) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
> .....
> Caused by: java.lang.NullPointerException: null
> 	at org.apache.camel.spring.boot.health.HealthCheckRoutesAutoConfiguration.routesHealthCheckRepository(HealthCheckRoutesAutoConfiguration.java:50) ~[camel-spring-boot-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
> 	at org.apache.camel.spring.boot.health.HealthCheckRoutesAutoConfiguration$$EnhancerBySpringCGLIB$$aa43f327.CGLIB$routesHealthCheckRepository$0(<generated>) ~[camel-spring-boot-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
> .....
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)