Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1830

NoClassDefFoundError: org/apache/logging/log4j/core/async/DiscardingAsyncQueueFullPolicy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Description

      When running a maven plugin that uses logj42 with an async appender the following exception is thrown at the end of Maven execution:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.759 s
      [INFO] Finished at: 2017-03-01T12:41:04+01:00
      [INFO] Final Memory: 21M/494M
      [INFO] ------------------------------------------------------------------------
      Caught exception class java.lang.NoClassDefFoundError logging exception class java.lang.NoClassDefFoundError
      java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/async/DiscardingAsyncQueueFullPolicy
      	at org.apache.logging.log4j.core.appender.AsyncAppender.stop(AsyncAppender.java:141)
      	at org.apache.logging.log4j.core.config.AbstractConfiguration.stop(AbstractConfiguration.java:336)
      	at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:351)
      	at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:279)
      	at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:109)
      	at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:74)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.async.DiscardingAsyncQueueFullPolicy
      	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
      	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
      	... 7 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pmacik Pavel MacĂ­k
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: