You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/02/05 16:35:59 UTC

[jira] Created: (WSCOMMONS-438) Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed

Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed
---------------------------------------------------------------------------------

                 Key: WSCOMMONS-438
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-438
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Andreas Veithen
            Priority: Minor
             Fix For: Axiom 1.2.9


Under the following conditions, OMElementImpl#getNextOMSibling throws an OMException ("Parser has already reached end of the document. No siblings found"), whereas it should simply return null:
* The element is the document element.
* There are no other nodes after the document element.
* The element has not been built and is consumed (e.g. by reading the events from getXMLStreamReaderWithoutCaching).

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


[jira] Updated: (WSCOMMONS-438) Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed

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

Andreas Veithen updated WSCOMMONS-438:
--------------------------------------

    Attachment: WSCOMMONS-438-test.patch

Attached patch that adds a test case providing evidence for this issue.

> Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed
> ---------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-438
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-438
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Andreas Veithen
>            Priority: Minor
>             Fix For: Axiom 1.2.9
>
>         Attachments: WSCOMMONS-438-test.patch
>
>
> Under the following conditions, OMElementImpl#getNextOMSibling throws an OMException ("Parser has already reached end of the document. No siblings found"), whereas it should simply return null:
> * The element is the document element.
> * There are no other nodes after the document element.
> * The element has not been built and is consumed (e.g. by reading the events from getXMLStreamReaderWithoutCaching).

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


[jira] Resolved: (WSCOMMONS-438) Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed

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

Andreas Veithen resolved WSCOMMONS-438.
---------------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: Axiom 1.2.9)

This issue is actually invalid because this is not supported by Axiom, even for elements that are not document elements. See WSCOMMONS-451.

> Unexpected OMException in OMElementImpl#getNextOMSibling when element is consumed
> ---------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-438
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-438
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Andreas Veithen
>            Priority: Minor
>         Attachments: WSCOMMONS-438-test.patch
>
>
> Under the following conditions, OMElementImpl#getNextOMSibling throws an OMException ("Parser has already reached end of the document. No siblings found"), whereas it should simply return null:
> * The element is the document element.
> * There are no other nodes after the document element.
> * The element has not been built and is consumed (e.g. by reading the events from getXMLStreamReaderWithoutCaching).

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