[
https://issues.apache.org/jira/browse/LOG4J2-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14718091#comment-14718091
]
Gary Gregory edited comment on LOG4J2-1108 at 8/28/15 5:51 AM:
---------------------------------------------------------------
It also looks like our setLevel(Level) implementation
{{org.apache.logging.log4j.jul.CoreLogger.setLevel(Level)}} does not perform
the proper security check:
{quote}
Throws:
SecurityException - if a security manager exists and if the caller does not
have LoggingPermission("control").
{quote}
Am I reading that right? If so. then that should be covered by a new issue.
was (Author: garydgregory):
It also looks like our setLevel(Level) implementation
{{org.apache.logging.log4j.jul.CoreLogger.setLevel(Level)}} does not perform
the proper security check:
{quote}
Throws:
SecurityException - if a security manager exists and if the caller does not
have LoggingPermission("control").
{quote}
Am I reading that right? That would be covered by a new issue.
> NullPointerException when using custom java.util.logging.Level
> --------------------------------------------------------------
>
> Key: LOG4J2-1108
> URL: https://issues.apache.org/jira/browse/LOG4J2-1108
> Project: Log4j 2
> Issue Type: Bug
> Components: JUL adapter
> Affects Versions: 2.4
> Environment:
> -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
> Reporter: Mikael Ståldal
>
> When using a 3rd party library (Twitter Finagle) which uses a custom
> java.util.logging.Level, I get this:
> {code}
> Exception in thread "main" java.lang.NullPointerException
> at
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
> at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
> at
> org.apache.logging.log4j.jul.DefaultLevelConverter.toLevel(DefaultLevelConverter.java:119)
> at
> org.apache.logging.log4j.jul.LevelTranslator.toLevel(LevelTranslator.java:72)
> at
> org.apache.logging.log4j.jul.CoreLogger.setLevel(CoreLogger.java:47)
> at com.twitter.logging.Logger.setLevel(Logger.scala:63)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]