Bug 48588 - DOMConfigurator does not close input stream when configured based on URL
DOMConfigurator does not close input stream when configured based on URL
Status: RESOLVED FIXED
Product: Log4j
Classification: Unclassified
Component: Configurator
unspecified
All All
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-01-21 07:37 UTC by Igor Shegelman
Modified: 2010-06-19 16:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Shegelman 2010-01-21 07:37:20 UTC
DOMConfigurator.doConfigure(final URL url, LoggerRepository repository) opens the configuration file using the equivalent of url.openConnection().getInputStream()).  However, that input stream is never closed.

In some situations, when DOMConfigurator.configure(URL) is invoked multiple times, it leads to 
java.io.FileNotFoundException: log4j.xml (Too many open files (errno:24))
Comment 1 Curt Arnold 2010-06-19 16:14:47 UTC
Thanks for the report.  Fixed in rev 956283 for log4j and rev 956284 for extras.