camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonin Stefanutti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9973) NullPointerException on CdiCamelExtension.shouldDeployDefaultCamelContext
Date Fri, 20 May 2016 07:45:13 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292937#comment-15292937
] 

Antonin Stefanutti commented on CAMEL-9973:
-------------------------------------------

[~thibof], would that be possible for you to share a bit more info (like the bean class code
excerpt) about the bean and the injection point for which the following line in {{CdiCamelExtension}}
throws the NPE:
{code}
if (!getRawType(ip.getType()).getPackage().getName().startsWith("org.apache.camel")) {
    continue;
}
{code}

That gives us a bit more context and identify the proper fix for your issue.

> NullPointerException on CdiCamelExtension.shouldDeployDefaultCamelContext
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-9973
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9973
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cdi
>    Affects Versions: 2.17.1
>         Environment: Suse SLES 12
> Java 1.8.0_u91 and 1.8.0_u92
> WildFly 10.0
>            Reporter: thibof
>            Assignee: Antonin Stefanutti
>            Priority: Minor
>             Fix For: 2.17.2, 2.18.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message