You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Lou Amodeo (JIRA)" <tu...@ws.apache.org> on 2007/09/04 15:02:47 UTC

[jira] Created: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Memory Leaks due to XML Parser not being closed
-----------------------------------------------

                 Key: TUSCANY-1656
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
             Project: Tuscany
          Issue Type: Bug
            Reporter: Lou Amodeo


I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
eliminated my problem.  Also concerned that there are other cases within the databinding framework.    


package org.apache.tuscany.sca.databinding.axiom;

import org.apache.axiom.om.OMElement;
import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;

/**
 * Transformer to convert data from a simple java bject to OMElement
 */
public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {

    @Override
    protected String getText(OMElement source) { 
    	
    	String aText = source.getText();
    	try 
    	{
    	 source.getXMLStreamReader().close();
    	} 
    	catch (Exception ex)
    	{}
        return aText;
    }


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


[jira] Commented: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524829 ] 

Raymond Feng commented on TUSCANY-1656:
---------------------------------------

I checked in a short-term fix under r572771

> Memory Leaks due to XML Parser not being closed
> -----------------------------------------------
>
>                 Key: TUSCANY-1656
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Lou Amodeo
>            Assignee: Raymond Feng
>
> I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
> eliminated my problem.  Also concerned that there are other cases within the databinding framework.    
> package org.apache.tuscany.sca.databinding.axiom;
> import org.apache.axiom.om.OMElement;
> import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;
> /**
>  * Transformer to convert data from a simple java bject to OMElement
>  */
> public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {
>     @Override
>     protected String getText(OMElement source) { 
>     	
>     	String aText = source.getText();
>     	try 
>     	{
>     	 source.getXMLStreamReader().close();
>     	} 
>     	catch (Exception ex)
>     	{}
>         return aText;
>     }

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


[jira] Updated: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-1656:
--------------------------------------------

    Priority: Minor  (was: Major)

Changing priority to minor as a short term fix has been provided.

> Memory Leaks due to XML Parser not being closed
> -----------------------------------------------
>
>                 Key: TUSCANY-1656
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Lou Amodeo
>            Assignee: Raymond Feng
>            Priority: Minor
>             Fix For: Java-SCA-Next
>
>
> I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
> eliminated my problem.  Also concerned that there are other cases within the databinding framework.    
> package org.apache.tuscany.sca.databinding.axiom;
> import org.apache.axiom.om.OMElement;
> import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;
> /**
>  * Transformer to convert data from a simple java bject to OMElement
>  */
> public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {
>     @Override
>     protected String getText(OMElement source) { 
>     	
>     	String aText = source.getText();
>     	try 
>     	{
>     	 source.getXMLStreamReader().close();
>     	} 
>     	catch (Exception ex)
>     	{}
>         return aText;
>     }

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


[jira] Assigned: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-1656:
-------------------------------------

    Assignee: Raymond Feng

> Memory Leaks due to XML Parser not being closed
> -----------------------------------------------
>
>                 Key: TUSCANY-1656
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Lou Amodeo
>            Assignee: Raymond Feng
>
> I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
> eliminated my problem.  Also concerned that there are other cases within the databinding framework.    
> package org.apache.tuscany.sca.databinding.axiom;
> import org.apache.axiom.om.OMElement;
> import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;
> /**
>  * Transformer to convert data from a simple java bject to OMElement
>  */
> public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {
>     @Override
>     protected String getText(OMElement source) { 
>     	
>     	String aText = source.getText();
>     	try 
>     	{
>     	 source.getXMLStreamReader().close();
>     	} 
>     	catch (Exception ex)
>     	{}
>         return aText;
>     }

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


[jira] Resolved: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng resolved TUSCANY-1656.
-----------------------------------

    Resolution: Fixed

> Memory Leaks due to XML Parser not being closed
> -----------------------------------------------
>
>                 Key: TUSCANY-1656
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Lou Amodeo
>            Assignee: Raymond Feng
>            Priority: Minor
>             Fix For: Java-SCA-Next
>
>
> I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
> eliminated my problem.  Also concerned that there are other cases within the databinding framework.    
> package org.apache.tuscany.sca.databinding.axiom;
> import org.apache.axiom.om.OMElement;
> import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;
> /**
>  * Transformer to convert data from a simple java bject to OMElement
>  */
> public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {
>     @Override
>     protected String getText(OMElement source) { 
>     	
>     	String aText = source.getText();
>     	try 
>     	{
>     	 source.getXMLStreamReader().close();
>     	} 
>     	catch (Exception ex)
>     	{}
>         return aText;
>     }

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


[jira] Commented: (TUSCANY-1656) Memory Leaks due to XML Parser not being closed

Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524824 ] 

Raymond Feng commented on TUSCANY-1656:
---------------------------------------

I created http://issues.apache.org/jira/browse/WSCOMMONS-240 to request a feature from AXIOM so that we can better fix this issue.

> Memory Leaks due to XML Parser not being closed
> -----------------------------------------------
>
>                 Key: TUSCANY-1656
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1656
>             Project: Tuscany
>          Issue Type: Bug
>            Reporter: Lou Amodeo
>            Assignee: Raymond Feng
>
> I am seeing memory leaks that appear to be a result of the StAX reader not being explictly closed.    Adding an explicit close to the reader in this instance 
> eliminated my problem.  Also concerned that there are other cases within the databinding framework.    
> package org.apache.tuscany.sca.databinding.axiom;
> import org.apache.axiom.om.OMElement;
> import org.apache.tuscany.sca.databinding.impl.SimpleType2JavaTransformer;
> /**
>  * Transformer to convert data from a simple java bject to OMElement
>  */
> public class OMElement2Object extends SimpleType2JavaTransformer<OMElement> {
>     @Override
>     protected String getText(OMElement source) { 
>     	
>     	String aText = source.getText();
>     	try 
>     	{
>     	 source.getXMLStreamReader().close();
>     	} 
>     	catch (Exception ex)
>     	{}
>         return aText;
>     }

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