[ https://issues.apache.org/jira/browse/TUSCANY-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-3713: ----------------------------------- Assignee: Simon Laws > Issue on ExtensibleStAXArtifactProcessor.read > --------------------------------------------- > > Key: TUSCANY-3713 > URL: https://issues.apache.org/jira/browse/TUSCANY-3713 > Project: Tuscany > Issue Type: Bug > Reporter: Yang Lei > Assignee: Simon Laws > Attachments: patch_StAXAP.txt > > > I am running OASIS spec compliance test in another hosting environment. When > I run the test that includs DTD definition in composite, (e.g. JCA_9016), the > parser in my hosting environement will throw the following exception. > javax.xml.stream.XMLStreamException: A non-whitespace event found while > calling nextTag. > ... parser code > at > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.read(ExtensibleStAXArtifactProcessor.java:155) > To bypass the issue, I commented the ExtensibleStAXArtifactProcessor code > with mine new code: > // if (event == XMLStreamConstants.START_DOCUMENT) { > // source.nextTag(); > // } > if (event == XMLStreamConstants.START_DOCUMENT) { > while (source.next() != XMLStreamReader.START_ELEMENT); > } > Here is the java doc for the nextTag: > nextTag > public int nextTag() > throws XMLStreamExceptionSkips any insignificant events (COMMENT > and PROCESSING_INSTRUCTION) until a START_ELEMENT or END_ELEMENT is reached. > If other than space characters are encountered, an exception is thrown. This > method should be used when processing element-only content because the parser > is not able to recognize ignorable whitespace if then DTD is missing or not > interpreted. > Returns: > the event type of the element read > Throws: > XMLStreamException - if the current event is not white space > Thanks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.