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 "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2010/03/11 02:01:31 UTC

[jira] Resolved: (WSCOMMONS-527) The SafeXMLStreamReader should rethrow the saved exception when access is attempted.

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

Rich Scheuerle resolved WSCOMMONS-527.
--------------------------------------

    Resolution: Fixed

Fixed with revision 921652

> The SafeXMLStreamReader should rethrow the saved exception when access is attempted.
> ------------------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-527
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-527
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>            Assignee: Rich Scheuerle
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Background:
> The SafeXMLStreamReader wraps a StAX parser.  If an access to the StAX parser causes an exception, the SafeXMLStreamReader remembers that the parser is in an error state and does not allow subsequent accesses.
> Problem:
> When a parser is in an error state, the SafeXMLStreamReader should throw the prior exception so that it can be properly handled by calling code.  
> Solution:
> I have a simple change to the SafeXMLStreamReader to remember and throw the original exception.
> I also have a small validation test case.

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