You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2021/12/13 21:19:00 UTC
[jira] [Commented] (LOG4J2-3217) Configurator.initialize(String,ClassLoader,URI) throws NPE
[ https://issues.apache.org/jira/browse/LOG4J2-3217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17458724#comment-17458724 ]
Volkan Yazici commented on LOG4J2-3217:
---------------------------------------
[~EtienneMiret], in these occasions, a test reproducing the issue will be greatly appreciated.
> 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
> Priority: Major
>
> 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)