You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Yang Lei (JIRA)" <de...@tuscany.apache.org> on 2010/10/11 18:09:32 UTC
[jira] Created: (TUSCANY-3713) Issue on
ExtensibleStAXArtifactProcessor.read
Issue on ExtensibleStAXArtifactProcessor.read
---------------------------------------------
Key: TUSCANY-3713
URL: https://issues.apache.org/jira/browse/TUSCANY-3713
Project: Tuscany
Issue Type: Bug
Reporter: Yang Lei
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.
[jira] Resolved: (TUSCANY-3713) Issue on
ExtensibleStAXArtifactProcessor.read
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws resolved TUSCANY-3713.
---------------------------------
Resolution: Fixed
Fix Version/s: Java-SCA-2.0-Beta1
Thanks for the patch Yang, Committed at r1021805
> 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
> Fix For: Java-SCA-2.0-Beta1
>
> 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.
[jira] Updated: (TUSCANY-3713) Issue on
ExtensibleStAXArtifactProcessor.read
Posted by "Yang Lei (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Lei updated TUSCANY-3713:
------------------------------
Attachment: patch_StAXAP.txt
The Fix
> Issue on ExtensibleStAXArtifactProcessor.read
> ---------------------------------------------
>
> Key: TUSCANY-3713
> URL: https://issues.apache.org/jira/browse/TUSCANY-3713
> Project: Tuscany
> Issue Type: Bug
> Reporter: Yang Lei
> 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.
[jira] Assigned: (TUSCANY-3713) Issue on
ExtensibleStAXArtifactProcessor.read
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ 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.