You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2020/12/03 22:37:00 UTC

[jira] [Commented] (LOG4J2-2969) NPE at getContextMap() in RingBufferLogEvent

    [ https://issues.apache.org/jira/browse/LOG4J2-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243558#comment-17243558 ] 

Gary D. Gregory commented on LOG4J2-2969:
-----------------------------------------

Does the error still occur in 2.14.0?

> NPE at getContextMap() in RingBufferLogEvent
> --------------------------------------------
>
>                 Key: LOG4J2-2969
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2969
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.13.0
>            Reporter: Nazerke Seidan
>            Priority: Major
>
> In our log4j2.xml configuration we use sync logging (Loggers, Root) for testing purpose, then we switch to async logging by setting  *Dlog4j2.contextSelector* to *org.apache.logging.log4j.core.async.AsyncLoggerContextSelector* 
> But then we get NPE when we browse log history on Solr Admin UI :
> at org.apache.logging.log4j.core.async.RingBufferLogEvent.getContextMap(RingBufferLogEvent.java:345)
>         at org.apache.solr.logging.log4j2.Log4j2Watcher.toSolrDocument(Log4j2Watcher.java:281)
>         at org.apache.solr.logging.log4j2.Log4j2Watcher.toSolrDocument(Log4j2Watcher.java:45)
>         at org.apache.solr.logging.LogWatcher.getHistory(LogWatcher.java:98)
>         at org.apache.solr.handler.admin.LoggingHandler.handleRequestBody(LoggingHandler.java:118)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:214)
> where we call  contextData.toMap() in  getContextMap() 
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)