Claus Ibsen created CAMEL-13204:
-----------------------------------

             Summary: camel3 - The camel-example-spring-boot-metrics does not 
work
                 Key: CAMEL-13204
                 URL: https://issues.apache.org/jira/browse/CAMEL-13204
             Project: Camel
          Issue Type: Task
          Components: examples
            Reporter: Claus Ibsen
             Fix For: 3.0.0


***************************
APPLICATION FAILED TO START
***************************

Description:

Field metricRegistry in 
org.apache.camel.example.spring.boot.metrics.Application required a bean of 
type 'com.codahale.metrics.MetricRegistry' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.codahale.metrics.MetricRegistry' in your 
configuration.

[WARNING]
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run 
(AbstractRunMojo.java:558)
    at java.lang.Thread.run (Thread.java:748)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'application': Unsatisfied dependency expressed 
through field 'metricRegistry'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying 
bean of type 'com.codahale.metrics.MetricRegistry' available: expected at least 
1 bean which qualifies as autowire candidate. Dependency annotations: 
{@org.springframework.beans.factory.annotation.Autowired(required=true)}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to