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/09/12 10:41:00 UTC
[jira] [Updated] (LOG4J2-3564) NPE in JULLogger.getLevel()
[ https://issues.apache.org/jira/browse/LOG4J2-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Karwasz updated LOG4J2-3564:
----------------------------------
Fix Version/s: 2.19.0
> 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
> Priority: Minor
> Fix For: 2.19.0
>
>
> {{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)