You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Étienne Miret (Jira)" <ji...@apache.org> on 2021/12/13 14:08:00 UTC
[jira] [Created] (LOG4J2-3217) Configurator.initialize(String,ClassLoader,URI) throws NPE
Étienne Miret created LOG4J2-3217:
-------------------------------------
Summary: Configurator.initialize(String,ClassLoader,URI) throws NPE
Key: LOG4J2-3217
URL: https://issues.apache.org/jira/browse/LOG4J2-3217
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Affects Versions: 2.15.0
Environment: Just upgraded from log4j 2.11.0 to 2.15.0. It was working in 2.11.0.
Reporter: Étienne Miret
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)}}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)