Loading...

log4j-dev@logging.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

DO NOT REPLY [Bug 48588] New: DOMConfigurator does not close input stream when configured based on URL bugzilla Thu Jan 21 08:00:39 2010

https://issues.apache.org/bugzilla/show_bug.cgi?id=48588

           Summary: DOMConfigurator does not close input stream when
                    configured based on URL
           Product: Log4j
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]