[ http://issues.apache.org/jira/browse/WSCOMMONS-13?page=comments#action_12376406 ]
Eran Chinthaka commented on WSCOMMONS-13: ----------------------------------------- Seems Mike is right and those two methods can only be called in a START_DOCUMENT event. See here : http://java.sun.com/webservices/docs/1.5/api/javax/xml/stream/XMLStreamReader.html (Look at the valid states table) > 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
