[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ws-general
Subject:    [jira] [Commented] (AXIOM-401) Creating a builder from a DOMSource only works with Woodstox
From:       "Hudson (JIRA)" <jira () apache ! org>
Date:       2012-09-15 19:28:07
Message-ID: 1343303886.84685.1347737287953.JavaMail.jiratomcat () arcas
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AXIOM-401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456478#comment-13456478 \
] 

Hudson commented on AXIOM-401:
------------------------------

Integrated in ws-axiom-trunk #1215 (See \
[https://builds.apache.org/job/ws-axiom-trunk/1215/])  AXIOM-401: Increased the test \
coverage for OMContainer#getXMLStreamReader and fixed DOMXMLStreamReader to make the \
new test cases pass. (Revision 1385149)

     Result = SUCCESS
veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/AbstractXMLStreamReader.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/SwitchingWrapper.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-common-impl/src/main/java/org/apache/axiom/om/impl/common/factory/DOMXMLStreamReader.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/OMTestSuiteBuilder.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestGetXMLStreamReaderCommentEvent.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/element/TestGetXMLStreamReaderGetElementTextFromParser.java


                
> Creating a builder from a DOMSource only works with Woodstox
> ------------------------------------------------------------
> 
> Key: AXIOM-401
> URL: https://issues.apache.org/jira/browse/AXIOM-401
> Project: Axiom
> Issue Type: Bug
> Components: DOOM, LLOM
> Affects Versions: 1.2.12
> Reporter: Andreas Veithen
> Assignee: Andreas Veithen
> Priority: Minor
> Fix For: 1.2.14
> 
> 
> Since Axiom 1.2.12, OMXMLBuilderFactory supports creating a builder from a \
> javax.xml.transform.Source object. This works well for DOMSource objects, provided \
> that Woodstox is used as StAX implementation. This can be demonstrated by the \
> following code: Document document = \
> DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); \
> document.appendChild(document.createElementNS(null, "root")); OMDocument omDocument \
> = OMXMLBuilderFactory.createOMBuilder(new DOMSource(document)).getDocument(); \
> omDocument.serialize(System.out); However, executing the same code using the StAX \
> implementation included in Oracle's Java 1.6 runtime environment fails with the \
> following error: Exception in thread "main" \
> java.lang.UnsupportedOperationException: Cannot create XMLStreamReader or \
> XMLEventReader from a javax.xml.transform.dom.DOMSource at \
> com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSource(XMLInputFactoryImpl.java:302)
>  at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:145)
>  at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:107)
>  at org.apache.axiom.util.stax.wrapper.WrappingXMLInputFactory.createXMLStreamReader(WrappingXMLInputFactory.java:128)
>  at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:107)
>  at org.apache.axiom.om.impl.common.factory.AbstractOMMetaFactory.createOMBuilder(AbstractOMMetaFactory.java:104)
>  at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:292)
>  at Test.main(Test.java:13)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic