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

NullPointerException with @BeanInject

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0, 3.0.2
    • Component/s: came-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When testing if I can use Camel 3, I’m getting a NullPointerException when trying to start Camel.

      Part of the stacktrace:

      Exception in thread "main" org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'route.dlc.ErrorRoutes': Initialization of bean failed; nested exception is org.apache.camel.spring.GenericBeansException: Error post processing bean: route.dlc.ErrorRoutes; nested exception is java.lang.NullPointerException

      Caused by: java.lang.NullPointerException
      at org.apache.camel.impl.engine.CamelPostProcessorHelper.getInjectionBeanValue(CamelPostProcessorHelper.java:292)
      at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.injectFieldBean(DefaultCamelBeanPostProcessor.java:234)
      at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.lambda$injectFields$0(DefaultCamelBeanPostProcessor.java:192)
      at org.apache.camel.util.ReflectionHelper.doWithFields(ReflectionHelper.java:108)
      at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.injectFields(DefaultCamelBeanPostProcessor.java:184)
      at org.apache.camel.impl.engine.DefaultCamelBeanPostProcessor.postProcessBeforeInitialization(DefaultCamelBeanPostProcessor.java:95)
      at org.apache.camel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:162)
      ... 30 more

        Attachments

        1. camel-issue.zip
          61 kB
          Remco Schoen

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              r.schoen@topdesk.com Remco Schoen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: