[
https://issues.apache.org/jira/browse/LOG4J2-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers resolved LOG4J2-2974.
---------------------------------
Fix Version/s: 2.14.1
Resolution: Fixed
> Log4j fails to initialize with Log4j-spring-cloud-config in Java 8
> ------------------------------------------------------------------
>
> Key: LOG4J2-2974
> URL: https://issues.apache.org/jira/browse/LOG4J2-2974
> Project: Log4j 2
> Issue Type: Bug
> Components: API
> Affects Versions: 2.14.0
> Reporter: Ralph Goers
> Priority: Major
> Fix For: 2.14.1
>
>
> During initialization Log4j tries to access properties. If Log4j's Spring
> support is present it will try to access Spring's environment. In order to do
> that it tries to check if LogManager's factory has been initialized. That
> will run the static block in LogManager which then gets a
> NullPointerException in a method it calls.
> To address this Log4j's Spring environment lookup needs to be able to
> determine that one isn't available yet without accessing LogManager.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)