camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6089) CXFEndpoint blueprint config having binding element may lead to NPE
Date Thu, 28 Feb 2013 05:35:14 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-6089.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.0
                   2.10.4
                   2.9.6
    
> 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
>            Assignee: Willem Jiang
>             Fix For: 2.9.6, 2.10.4, 2.11.0
>
>         Attachments: trunk-camel-cxf-20130220.diff, trunk-tests-camel-blueprint-cxf-test-20130220b.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

Mime
View raw message