You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Piotr Karwasz (Jira)" <ji...@apache.org> on 2022/07/28 20:16:00 UTC
[jira] [Created] (LOG4J2-3564) NPE in JULLogger.getLevel()
Piotr Karwasz created LOG4J2-3564:
-------------------------------------
Summary: NPE in JULLogger.getLevel()
Key: LOG4J2-3564
URL: https://issues.apache.org/jira/browse/LOG4J2-3564
Project: Log4j 2
Issue Type: Bug
Components: Log4j-to-JUL
Affects Versions: 2.17.2
Reporter: Piotr Karwasz
{{JULLogger.getLevel()}} fails with a {{NullPointerException}} if the JUL root logger has a {{null}} level. This is a common situation in JDK 8+, since {{LogManager$RootLogger}} does not set the log level any more in its constructor.
A practical example where it fails is Tomcat's {{ClassLoaderLogManager}}: cf. [BZ 66184|https://bz.apache.org/bugzilla/show_bug.cgi?id=66184].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)