Method getDataHandler() in SAAJ AttachmentPartImpl opens an imput stream internally which is not closed. --------------------------------------------------------------------------------------------------------
Key: AXIS2-778 URL: http://issues.apache.org/jira/browse/AXIS2-778 Project: Apache Axis 2.0 (Axis2) Type: Bug Components: om Environment: Java 1.5 Reporter: Jörg Eichhorn When the method getDataHandler() in the class org.apache.axis2.saaj.AttachmentPartImpl it checks internally if there is content available by testing whether the getContent() method returns null or not. The getContent() method will internally return the content of the datahandler which is the (File)InputStream in my case. This InputStream is not closed anymore which results into locked files (until the application exits). I think it does not make sense to check if there is really content available - the check if the dataHandler is not null (like it was in the Axis1 implementation) should be enough. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]