Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13204

camel3 - The camel-example-spring-boot-metrics does not work

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-M1, 3.0.0
    • Component/s: examples
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      ***************************
      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)}

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: