[
https://issues.apache.org/jira/browse/AXIS2-4273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pétur Runólfsson updated AXIS2-4273:
------------------------------------
Attachment: AXIS2-4273.patch
This patch fixes AXIS2-4273. The patch is against
http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/adb.
The problem was that ConverterUtil.getAnyTypeObject usually leaves the xml
stream reader at the end of the any type element. When xsi:nil is true, it left
the reader at the start element instead. The fix is a single reader.next() to
move the reader from the start element to the end element.
The patch includes two test cases. One demonstrates that getAnyTypeObject
leaves the reader at the end element when xsi:nil is true, the other shows the
same when xsi:nil is absent, but xsi:type is set instead.
> org.apache.axis2.databinding.ADBException: Unexpected subelement when
> returned object contains null member of type Object.
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4273
> URL: https://issues.apache.org/jira/browse/AXIS2-4273
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4.1
> Reporter: Pétur Runólfsson
> Attachments: AXIS2-4273.patch, Client.java, Server.java, Server.wsdl,
> ServerCallbackHandler.java, ServerStub.java, services.xml, Value.java
>
>
> A client generated with wsdl2java.sh with no options except -uri throws an
> "Unexpected subelement" exception when a method returns an object that has a
> null member of type Object.
> The Web Service is an Axis2 POJO Web Service.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.