[jboss-jira] [JBoss JIRA] (LOGMGR-73) NPE on boot that is swallowed

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Fri Jun 21 00:37:20 EDT 2013


Stuart Douglas created LOGMGR-73:
------------------------------------

             Summary: NPE on boot that is swallowed
                 Key: LOGMGR-73
                 URL: https://issues.jboss.org/browse/LOGMGR-73
             Project: JBoss Log Manager
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 1.4.1.Final
            Reporter: Stuart Douglas
            Assignee: David Lloyd


In org.jboss.logmanager.config.LoggerConfigurationImpl line 83:
                configuration.getHandlerRefs().get(getName()).setFilter((Filter) param.getObject());

throws a NPE, as configuration.getHandlerRefs() does not contain the relevant entry. The whole thing looks very suspicous because getHandlerRefs() has two entries under 'FILE' and 'CONSOLE' while getName() returns log categories such as 'com.arjuna', so it seems very unlikely that this will ever work. 

The only reason that this appears to work ok is because in org.jboss.logmanager.config.LogContextConfigurationImpl#doApplyPostCreate any exceptions or errors are silently ignored:

{code}
try {
   action.applyPostCreate((T) arg);
} catch (Throwable ignored) {}
{code}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list