[
https://issues.apache.org/jira/browse/TUSCANY-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891152#action_12891152
]
ant elder commented on TUSCANY-3628:
------------------------------------
As an FYI in case its relevant to OSGi as well, we also see this cause the
UnsupportedOperation exception outside of OSGi when running with the Sun JDK 6
and not having the Woodstox impl jar in the classpath. It woks ok with the IBM
JDK 6 or by adding the woodstox impl dependency. Would be wonderful to fix it
so it woks without woodstox with the Sun jdk.
> Tuscany fails with InvalidURI exception when running OASIS testcases under
> OSGi
> -------------------------------------------------------------------------------
>
> Key: TUSCANY-3628
> URL: https://issues.apache.org/jira/browse/TUSCANY-3628
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-2.0-M5
> Reporter: Mike Edwards
> Fix For: Java-SCA-2.0
>
>
> When running OASIS testcases under OSGi typical testcases cause an InvalidURI
> exception or an UnsupportedOperation exception, always associated with:
> at
> org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.writePropertyValue(BaseAssemblyProcessor.java:685)
> at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.write(CompositeProcessor.java:868)
> On investigation, the line of code causing the problem is this one in
> BaseAssemblyProcessor.writePropertyValue:
> .... XMLStreamReader reader =
> XMLInputFactory.newInstance().createXMLStreamReader(new DOMSource(node));
> This is not a good technique for creating an XMLStreamReader from a DOM Node
> - the Java SDK JavaDoc warns about it, but the Tuscany code is using it - and
> it is failing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.