You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Harinandan Reddy (JIRA)" <ji...@apache.org> on 2008/10/22 20:57:44 UTC

[jira] Updated: (AXIS2-4020) in ConverterUtil, xmlStreamReader.getText() is called before checking xmlStreamReader.hasText()

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

Harinandan Reddy updated AXIS2-4020:
------------------------------------

    Attachment: ConverterUtilPatch.txt

The IllegalStateException can also occur while parsing the XML type below:

<value type="xsd:string" />

I have created a patch which is attached to workaround this issue. I had to comment out another piece of code in addition to the changes required for the fix where ADBException was thrown when the textual element returned was null as it is ok to return null.


> in ConverterUtil, xmlStreamReader.getText() is called before checking xmlStreamReader.hasText()
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4020
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4020
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4
>         Environment: axis2 v1.4
>            Reporter: wei tian
>         Attachments: ConverterUtilPatch.txt
>
>
> The method public static Object getAnyTypeObject(XMLStreamReader xmlStreamReader,  Class extensionMapperClass) throws IllegalStateException while parsing the following XML:
> <value xsi:type="xsd:string"></value>
> The reason is that the <value> is an empty node.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org