[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]