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

CdiCamelExtension.shouldDeployDefaultCamelContext throws NPE with primitive injection points

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.1
    • Fix Version/s: 2.17.2, 2.18.0
    • Component/s: camel-cdi
    • Labels:
      None
    • Environment:

      Suse SLES 12
      Java 1.8.0_u91 and 1.8.0_u92
      WildFly 10.0

    • Estimated Complexity:
      Unknown

      Description

      The NPE prevents Camel to start :

      java.lang.NullPointerException
      	at org.apache.camel.cdi.CdiCamelExtension.shouldDeployDefaultCamelContext(CdiCamelExtension.java:310)
      	at org.apache.camel.cdi.CdiCamelExtension.afterBeanDiscovery(CdiCamelExtension.java:234)
      	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.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
      	at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)
      	at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)
      	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)
      	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:42)
      	at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:61)
      	at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:423)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
      

      The issue seems to be related to CAMEL-9904.

      It works well when I get back to version 2.17.0.

        Attachments

          Activity

            People

            • Assignee:
              antonin.stefanutti Antonin Stefanutti
              Reporter:
              thibof thibof

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment