logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46163] New: LoggerDynamicMBean needs to handle a null Appender name
Date Fri, 07 Nov 2008 00:17:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46163

           Summary: LoggerDynamicMBean needs to handle a null Appender name
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: psmith@apache.org


If a plain BasicConfigurator.configure() is called in an application after the
HierarchyMBean is instantiated, then an exception is thrown trying to create an
ObjectName for the appender based on the Appender's name property, which is
initialised to null, and is not allowed.

Instead, the LoggerDynamicMBean class should be defensive when creating a
Appender MBean's by detecting a null/empty string name and at least trying to
use .toString() to construct a logical display name.


-- 
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message