Bug 48588 - DOMConfigurator does not close input stream when configured based on URL
Summary: DOMConfigurator does not close input stream when configured based on URL
Status: RESOLVED FIXED
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Configurator (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
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.