[slf4j-dev] [Bug 79] NullPointerException in SLF4JLocationAwareLog.debug

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Sep 26 15:31:30 CEST 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=79


Natan Cox <natan.cox at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |natan.cox at gmail.com
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #10 from Natan Cox <natan.cox at gmail.com>  2008-09-26 15:31:30 ---
During shutdown of Tomcat I'm getting the same bug. It looks like it has some
problems with JMS, but even in that case, it should not fail. I looked into the
code and it seems to fail on

  public void debug(Object message) {
    logger.log(null, FQCN, LocationAwareLogger.DEBUG_INT,
String.valueOf(message), null);
  }

which is quite strange, it can only happen if logger is null. Now: transient
loggers can become null, so it might be related to this?!

  private transient LocationAwareLogger logger;



Exception in thread "ActiveMQ Task" java.lang.NullPointerException
        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:106)
        at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:699)
        at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:114)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "ActiveMQ Task" java.lang.NullPointerException
        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:106)
        at
org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:699)
        at
org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:114)
        at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
        at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)


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



More information about the slf4j-dev mailing list