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

Configurator.initialize(String,ClassLoader,URI) throws NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.15.0
    • None
    • Configurators
    • None
    • Just upgraded from log4j 2.11.0 to 2.15.0. It was working in 2.11.0.

    Description

      Calling org.apache.logging.log4j.core.config.Configurator.initialize (String, ClassLoader, URI) throws a NullPointerException:

       

      2021-12-13 14:49:02,227 main ERROR There was a problem initializing the LoggerContext [TestDynamicFilter] using configuration at file:/****/log4j2-test-dynamic-filter.xml. java.lang.NullPointerException
          at org.apache.logging.log4j.core.selector.ContextSelector.getContext(ContextSelector.java:112)
          at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:253)
          at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:182)
          at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:143)

      Attachments

        Activity

          People

            Unassigned Unassigned
            EtienneMiret Étienne Miret
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: