logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Macík (JIRA) <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1830) NoClassDefFoundError: org/apache/logging/log4j/core/async/DiscardingAsyncQueueFullPolicy
Date Wed, 01 Mar 2017 11:44:45 GMT
Pavel Macík created LOG4J2-1830:
-----------------------------------

             Summary: NoClassDefFoundError: org/apache/logging/log4j/core/async/DiscardingAsyncQueueFullPolicy
                 Key: LOG4J2-1830
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1830
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.8
         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Java version: 1.8.0_60-x86_64, vendor: Oracle Corporation
Default locale: cs_CZ, platform encoding: UTF-8
OS name: "linux", version: "4.9.5-200.fc25.x86_64", arch: "amd64", family: "unix
            Reporter: Pavel Macík


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




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message