[
https://issues.apache.org/jira/browse/TUSCANY-3628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892220#action_12892220
]
Mike Edwards commented on TUSCANY-3628:
---------------------------------------
Fix completed with
979205.
Code removed from BaseAssemblyProcessor.
Code now present in both CompositeProcessor class and ComponentTypeProcessor
class (these are the only users of the writePropertyValue method)
The code is identical in both classes and uses the StAXHelper pattern described
above.
> 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.