You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kandula-dev@ws.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2010/03/08 17:23:27 UTC

[jira] Created: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842764#action_12842764 ] 

Andreas Veithen commented on AXIS2-4649:
----------------------------------------

Martin,

Can you provide a test case that triggers the stack overflow?

> 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
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842764#action_12842764 ] 

Andreas Veithen commented on AXIS2-4649:
----------------------------------------

Martin,

Can you provide a test case that triggers the stack overflow?

> 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
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842764#action_12842764 ] 

Andreas Veithen commented on AXIS2-4649:
----------------------------------------

Martin,

Can you provide a test case that triggers the stack overflow?

> 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
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842764#action_12842764 ] 

Andreas Veithen commented on AXIS2-4649:
----------------------------------------

Martin,

Can you provide a test case that triggers the stack overflow?

> 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
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4649) MTOMXMLStreamWriter caching throws StackException

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842764#action_12842764 ] 

Andreas Veithen commented on AXIS2-4649:
----------------------------------------

Martin,

Can you provide a test case that triggers the stack overflow?

> 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
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org