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

Aki Yoshida commented on CAMEL-6089:
------------------------------------

i just noticed that somehow the pmd setting was not working and the test class 
contains several unneeded imports.
i'll clean it up.
sorry.
                
> CXFEndpoint blueprint config having binding element may lead to NPE
> -------------------------------------------------------------------
>
>                 Key: CAMEL-6089
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6089
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.10.3
>            Reporter: Aki Yoshida
>         Attachments: trunk-camel-cxf-20130220.diff, 
> trunk-tests-camel-blueprint-cxf-test-20130220.diff
>
>
> There seems to be  an error in the EndpointpointDefinitionParser in parsing 
> the binding element. Concretely speaking, that element is not parsed from the 
> right element but wrongly from its parent element.
> So, when you have something like
>   <camel-cxf:cxfEndpoint id="routerEndpoint" ...>
>     ...
>     <camel-cxf:binding>
>       <soap:soapBinding mtomEnabled="true" version="1.2"/>
>     </camel-cxf:binding>
>   </camel-cxf:cxfEndpoint>
> you may get an NPE, as shown in:
> java.lang.NullPointerException: null
>       at 
> org.apache.aries.blueprint.container.RecipeBuilder.getValue(RecipeBuilder.java:335)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.RecipeBuilder.createBeanRecipe(RecipeBuilder.java:258)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.RecipeBuilder.createRecipe(RecipeBuilder.java:106)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:89)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.getRepository(BlueprintContainerImpl.java:438)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:288)
>  ~[na:na]
>       at 
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)
>  ~[na:na
> Fixing this line in EndpointDefinitionParser will fix this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to