[jboss-jira] [JBoss JIRA] (LOGMGR-73) Configured logger filters don't work; NPE is hidden

James Livingston (JIRA) jira-events at lists.jboss.org
Fri Nov 1 02:37:02 EDT 2013


     [ https://issues.jboss.org/browse/LOGMGR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Livingston updated LOGMGR-73:
-----------------------------------

    Forum Reference: https://community.jboss.org/thread/229586

    
> Configured logger filters don't work; NPE is hidden
> ---------------------------------------------------
>
>                 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
>             Fix For: 1.3.3.Final, 1.4.2.Final, 1.5.0.Beta1, 2.0.0.Beta1
>
>
> 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