axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juanda Zeng (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-391) ArchiveReader does not close the services.xml file
Date Mon, 16 Jan 2006 02:57:20 GMT
ArchiveReader does not close the services.xml file
--------------------------------------------------

         Key: AXIS2-391
         URL: http://issues.apache.org/jira/browse/AXIS2-391
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: deployment  
    Versions: 0.94    
 Environment: Windows XP Pro, JBoss
    Reporter: Juanda Zeng
    Priority: Trivial


The processServiceGroup(...) method does not seem to close the "InputStream in" after using
it. This causes the file handle for services.xml to remain unreleased.

SUGGESTED RESOLUTION:
----------------------------------------
In org.apache.axis2.deployment.repository.util.ArchiveReader, add a finally block to close
the InputStream after line 250 of rev. 367538, eg.:
                } finally {
                	if (in != null) {
                		try {
                			in.close();
                		} catch (IOException e) {
                		}
                	}
                }

There is a need to initialize the InputStream to null at line 239 as well.


-- 
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


Mime
View raw message