camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moises Ventura Espejo (JIRA)" <>
Subject [jira] [Commented] (CAMEL-6720) SoapJaxbDataFormat not handling correctly SOAP action with request wrapper element
Date Wed, 12 Feb 2014 12:29:19 GMT


Moises Ventura Espejo commented on CAMEL-6720:

The problem seems to be fixed by commenting out the following line 99, method "private List<TypeInfo>
getInInfo(Method method)":

//typeInfos.add(new TypeInfo(null, null));

I've been using the patched jar for a while without noticing problems. Is the TypeInfo(null,
null) required in other methods?

Sorry I'm not submitting a proper patch, I'm new in Jira.

> SoapJaxbDataFormat not handling correctly SOAP action with request wrapper element
> ----------------------------------------------------------------------------------
>                 Key: CAMEL-6720
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-soap
>    Affects Versions: 2.12.0
>            Reporter: Ondrej Fischer
>            Priority: Minor
>             Fix For: Future
>         Attachments:
> If an interface to be used as SOAP service interface is configured to have parameters
wrapped in a request wrapper element (eg. using @RequestWrapper),
> then an attempt to invoke a its method will throw NPE:
> {code}
> java.lang.NullPointerException
> 	at
> 	at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.createContentFromObject(
> 	at org.apache.camel.dataformat.soap.Soap11DataFormatAdapter.doMarshal(
> 	at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.marshal(
> 	at org.apache.camel.processor.MarshalProcessor.process(
> {code}
> The reason for this is sequence of following:
> # The ServiceInterfaceStrategy is creating a mapping of methods to MethodInfo.
> # In case of RequestWrapper, the wrapper class is used as a single input TypeInfo, and
no TypeInfo is being held for the real parameters.
> # At method invocation, it tries to lookup the TypeInfo in the MethodInfo, but for the
real parameter class, and it only contains mapping for the request wrapper. So it fails with

This message was sent by Atlassian JIRA

View raw message