Bug 48588

Summary: DOMConfigurator does not close input stream when configured based on URL
Product: Log4j - Now in Jira Reporter: Igor Shegelman <ishegelman>
Component: ConfiguratorAssignee: log4j-dev <log4j-dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

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.