Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83032CFC8 for ; Mon, 9 Sep 2013 14:06:07 +0000 (UTC) Received: (qmail 22628 invoked by uid 500); 9 Sep 2013 14:06:04 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 22299 invoked by uid 500); 9 Sep 2013 14:06:03 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 22066 invoked by uid 99); 9 Sep 2013 14:06:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 14:06:02 +0000 Date: Mon, 9 Sep 2013 14:06:01 +0000 (UTC) From: "Ondrej Fischer (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-6720) SoapJaxbDataFormat not handling correctly SOAP action with request wrapper element MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ondrej Fischer created CAMEL-6720: ------------------------------------- Summary: SoapJaxbDataFormat not handling correctly SOAP action with request wrapper element Key: CAMEL-6720 URL: https://issues.apache.org/jira/browse/CAMEL-6720 Project: Camel Issue Type: Bug Components: camel-soap Affects Versions: 2.12.0 Reporter: Ondrej Fischer 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 org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy.findQNameForSoapActionOrType(ServiceInterfaceStrategy.java:207) at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.createContentFromObject(SoapJaxbDataFormat.java:208) at org.apache.camel.dataformat.soap.Soap11DataFormatAdapter.doMarshal(Soap11DataFormatAdapter.java:77) at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.marshal(SoapJaxbDataFormat.java:141) at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:59) {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 NPE. -- 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