Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
2.15.0
-
None
-
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)