[logback-dev] [JIRA] Resolved: (LBCLASSIC-79) NullPointerException in JMX Configurator setLoggerLevel

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Mon Nov 17 19:01:35 CET 2008


     [ http://jira.qos.ch/browse/LBCLASSIC-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCLASSIC-79.
---------------------------------

    Fix Version/s: 0.9.12
       Resolution: Fixed

> NullPointerException in JMX Configurator setLoggerLevel
> -------------------------------------------------------
>
>                 Key: LBCLASSIC-79
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-79
>             Project: logback-classic
>          Issue Type: Bug
>    Affects Versions: 0.9.11
>            Reporter: Jean-Luc Geering
>            Assignee: Ceki Gulcu
>             Fix For: 0.9.12
>
>
> import org.slf4j.LoggerFactory;
> import ch.qos.logback.classic.LoggerContext;
> import ch.qos.logback.classic.jmx.Configurator;
> import ch.qos.logback.classic.jmx.ConfiguratorMBean;
> public class Test {
>     public static void main(String[] args) {
>         LoggerFactory.getLogger("com.test1");
>         LoggerFactory.getLogger("com.test2");
>         LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
>         ConfiguratorMBean configurator = new Configurator(lc);
>         configurator.setLoggerLevel("com", "info");
>         configurator.setLoggerLevel("com", "null");
>      }
> }
> Exception in thread "main" java.lang.NullPointerException
>     at ch.qos.logback.classic.Logger.setLevel(Logger.java:193)
>     at ch.qos.logback.classic.jmx.Configurator.setLoggerLevel(Configurator.java:92)
>     at Test.main(Test.java:14)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list