MTOMXMLStreamWriter caching throws StackException
-------------------------------------------------
Key: AXIS2-4649
URL: https://issues.apache.org/jira/browse/AXIS2-4649
Project: Axis2
Issue Type: Bug
Components: om
Affects Versions: 1.5.1
Environment: JDK 1.6.0_16
AXIS2-1.5.1
file=org.apache.axiom.om.impl.MTOMXMLStreamWriter
Reporter: Martin Gainty
when using the standard MTOMXMLStreamWriter with cache enabled i see
StackOverflow errors
i noticed the logic was implementing cache logic
disabling caching routed around the cache logic and I no longer see
StackOverflow errors
org.apache.axiom.om.OMAbstractFactory
factory=org.apache.axiom.om.OMAbstractFactory.getOMFactory();
org.apache.axiom.om.OMNamespace =
factory.createOMNamespace("http://www.fubar.com","tns");
org.apache.axiom.om.OMElement
new_envelope_element=factory.createOMElement("envelope",omNs);
org.apache.axiom.om.OMElement
new_child_to_add=factory.createOMElement("newChild",omNs);
new_child_to.add.setText("ThisIsANewChildElement");
new_envelope_element.getBuilder().setCache(false); //setting cache to false
bypasses MTOMXMLStreamWriter logic which cause StackOverflow error
new_envelope_element.addChild(new_child_to_add);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]