"Not enough message parts for the operation" when using jdom.Element parameters
-------------------------------------------------------------------------------

                 Key: XFIRE-901
                 URL: http://jira.codehaus.org/browse/XFIRE-901
             Project: XFire
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.2
         Environment: Windows XP Pro.
JRE 1.5.0_09
            Reporter: Daniel Tremblay
         Assigned To: Dan Diephouse
            Priority: Minor
         Attachments: StaxBuilder_fix.txt

The following method would raise the exception "Not enough message parts for 
the operation":
public String MyMethod(String a, Element b,String c);

But, the following method would function properly:
public String MyMethod(String a, String c, Element b);

The problem stems from the org.codehaus.xfire.util.jdom.StaxBuilder.buildTree 
method parsing up (current = current.getParentElement() ).
For the stated example, the params collection would only appear to have two 
items instead of three.

The SOAP body would look like this:

<soapenv:Body>
      <mtb:MyMethod>
         <mtb:a>DAN</mtb:a>
         <mtb:b><myelement>1</myelement></mtb:b>
         <mtb:c>null</mtb:c>
      </mtb:MyMethod>
</soapenv:Body>

What ended up happening is that mtb:b would then contain the mtb:c element.

The fix is very simple.  Still need to regression test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to