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

DefaultShutdownCallbackRegistry can throw a NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • Core
    • None
    • java version "1.8.0_60"
      Maven_3.2.2

    • Patch

    Description

      When running the Maven goals for packaging my project an exception is thrown when the JVM exits..

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:36 min (Wall Clock)
      [INFO] Finished at: 2016-10-18T12:06:06+03:00
      [INFO] Final Memory: 48M/626M
      [INFO] ------------------------------------------------------------------------
      Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/logging/log4j/message/ParameterizedMessage
      	at org.apache.logging.log4j.message.ParameterizedNoReferenceMessageFactory.newMessage(ParameterizedNoReferenceMessageFactory.java:104)
      	at org.apache.logging.log4j.message.AbstractMessageFactory.newMessage(AbstractMessageFactory.java:75)
      	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2010)
      	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1884)
      	at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:793)
      	at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:76)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.message.ParameterizedMessage
      	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

        1. LOG4J2_1642.patch
          3 kB
          Johno Crawford

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              johno Johno Crawford
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: