axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juanda Zeng (JIRA)" <>
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
     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.

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 {
                		} 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:
For more information on JIRA, see:

View raw message