[ http://issues.apache.org/jira/browse/WSCOMMONS-13?page=comments#action_12376062 ]
Mike Rheinheimer commented on WSCOMMONS-13: ------------------------------------------- One thing to watch out for on this issue.. The problem was discovered by using a StAX implementation other than Woodstox. The requirement of this patch to allow Axiom to work with a non-Woodstox parser suggests that the Woodstox parser is an incomplete (or incorrect) implementation of StAX. In other words, Woodstox is allowing its getVersion() and getCharacterEncodingScheme() to be called while in an invalid state. I have not reviewed the StAX spec to see if this restriction is required. > Axiom calls StAX methods while parser is in invalid state > --------------------------------------------------------- > > Key: WSCOMMONS-13 > URL: http://issues.apache.org/jira/browse/WSCOMMONS-13 > Project: WS-Commons > Type: Bug > Components: AXIOM > Environment: Windows XP -- not relevent for issue > Reporter: Mike Rheinheimer > Attachments: patch.txt > > Axiom class > org.apache.ws.commons.soap.impl.builder.StAXSOAPModelBuilder > calls the StAX parser methods getCharacterEncodingScheme() and getVersion() > when the parser is in an invalid state. These methods may only be called > when the parser is in the START_DOCUMENT state, according to the StAX spec. > Patch to be provided by me. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
