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.

Reply via email to