I am getting the following exception while executing a use case of my
OSGi-ified mega-bundle WAR application in karaf 3.0.0.
javax.xml.transform.TransformerException: Can't transform to a Result of
type javax.xml.transform.stream.StreamResult
at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:302)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:330)
at
com.nextgate.accessmanager.common.XMLNode.getXmlString(XMLNode.java:222)
at
com.nextgate.accessmanager.common.XMLNode.toXMLString(XMLNode.java:209)
I've debugged the project code as well as the
org.apache.xalan.transformer.TransformerIdentityImpl class and am finding
that a condition which should be evaluating to true is actually evaluating
to false because code in the else statement is actually executing instead:
else if (outputTarget instanceof StreamResult)
I've checked that outputTarget is actually of type
javax.xml.transform.stream.StreamResult in the debugger.
I read the following:
"Are you loading any types dynamically, potentially from different
classloaders? The only time I've seen apparently inconsistent results was
when I had two lines of code which look like they refer to the same type,
but which have actually loaded that type from different classloaders."
http://stackoverflow.com/questions/631099/instanceof-yields-inconsistent-results-for-detecting-interfaces
<http://stackoverflow.com/questions/631099/instanceof-yields-inconsistent-results-for-detecting-interfaces>
any ideas on how to proceed to fix this? FYI, the same WAR w/o the
manifest.mf is not reproducing this issue in Glassfish v3.1.2.
--
View this message in context:
http://karaf.922171.n3.nabble.com/potential-classpath-or-classloading-issue-with-OSGi-ified-WAR-mega-bundle-tp4032245.html
Sent from the Karaf - User mailing list archive at Nabble.com.