You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2012/11/04 23:32:12 UTC
[jira] [Commented] (LOG4J2-108) NPE ClassLoaderContextSelector
[ https://issues.apache.org/jira/browse/LOG4J2-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490318#comment-13490318 ]
Ralph Goers commented on LOG4J2-108:
------------------------------------
I can see what is probably causing the NPE but can you provide any more information on the environment. I would really like to create a unit test for this. From what I can tell I am guessing you aren't using the Sun JVM and you do have a security manager enabled.
> NPE ClassLoaderContextSelector
> ------------------------------
>
> Key: LOG4J2-108
> URL: https://issues.apache.org/jira/browse/LOG4J2-108
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.0-beta3
> Reporter: Olivier Lamy (*$^¨%`£)
>
> tested with trunk r1405641.
> {code}
> java.lang.NullPointerException
> at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:102)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:73)
> at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:30)
> at org.apache.logging.log4j.LogManager.getContext(LogManager.java:247)
> at org.slf4j.helpers.Log4JLoggerFactory$PrivateManager.getContext(Log4JLoggerFactory.java:103)
> at org.slf4j.helpers.Log4JLoggerFactory.getContext(Log4JLoggerFactory.java:89)
> at org.slf4j.helpers.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:45)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org