Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta9
    • Fix Version/s: 2.0-rc1, 2.0
    • Component/s: Core
    • Labels:
      None
    • Environment:

      java version "1.6.0_65"
      Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
      Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

      Description

      ThresholdFilter throws NPE after LoggerContext#reconfigure() is performed.

      [java] SEVERE: Exception processing: 662 org.apache.logging.log4j.core.async.AsyncLoggerConfigHelper$Log4jEventWrapper@55573de0
      [java] java.lang.NullPointerException
      [java] at org.apache.logging.log4j.core.filter.ThresholdFilter.filter(ThresholdFilter.java:70)
      [java] at org.apache.logging.log4j.core.filter.ThresholdFilter.filter(ThresholdFilter.java:66)
      [java] at org.apache.logging.log4j.core.filter.AbstractFilterable.isFiltered(AbstractFilterable.java:124)
      [java] at org.apache.logging.log4j.core.appender.SMTPAppender.isFiltered(SMTPAppender.java:157)
      [java] at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:94)
      [java] at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:425)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfig.asyncCallAppenders(AsyncLoggerConfig.java:116)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfigHelper$Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigHelper.java:218)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfigHelper$Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigHelper.java:203)
      [java] at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:133)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      [java] at java.lang.Thread.run(Thread.java:695)
      [java] Exception in thread "AsyncLoggerConfig-1" java.lang.RuntimeException: java.lang.NullPointerException
      [java] at com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
      [java] at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:152)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      [java] at java.lang.Thread.run(Thread.java:695)
      [java] Caused by: java.lang.NullPointerException
      [java] at org.apache.logging.log4j.core.filter.ThresholdFilter.filter(ThresholdFilter.java:70)
      [java] at org.apache.logging.log4j.core.filter.ThresholdFilter.filter(ThresholdFilter.java:66)
      [java] at org.apache.logging.log4j.core.filter.AbstractFilterable.isFiltered(AbstractFilterable.java:124)
      [java] at org.apache.logging.log4j.core.appender.SMTPAppender.isFiltered(SMTPAppender.java:157)
      [java] at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:94)
      [java] at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:425)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfig.asyncCallAppenders(AsyncLoggerConfig.java:116)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfigHelper$Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigHelper.java:218)
      [java] at org.apache.logging.log4j.core.async.AsyncLoggerConfigHelper$Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigHelper.java:203)
      [java] at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:133)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                dbaba Daisuke Baba
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: