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 "wei tian (JIRA)" <ji...@apache.org> on 2008/09/09 02:07:44 UTC

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

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


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


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

Posted by "Harinandan Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644710#action_12644710 ] 

Harinandan Reddy commented on AXIS2-4020:
-----------------------------------------

This xml used to handled fine in Axis 1.4 framework.

> 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


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

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned AXIS2-4020:
--------------------------------------

    Assignee: Andreas Veithen

> 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
>            Assignee: Andreas Veithen
>         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.


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

Posted by "Harinandan Reddy (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644254#action_12644254 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4020:
-----------------------------------------------------

<value xsi:type="xsd:string" /> 

Are you sure this as a valid xml. I think if it is null it should something like this
<value xsi:nil = "true" xsi:type="xsd:string" />. That method you mentioned check for this. 

> 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


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

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIS2-4020.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

This issue is duplicated by AXIS2-4402, which has been fixed recently.

> 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
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>         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.


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

Posted by "Harinandan Reddy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641938#action_12641938 ] 

harinandan edited comment on AXIS2-4020 at 10/22/08 11:57 AM:
--------------------------------------------------------------------

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

<value xsi: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.


      was (Author: harinandan):
    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