[jira] [Updated] (LOG4J2-3471) log4j-1.2-api 2.17.2 throws NullPointerException while removing appender with name as null

2022-05-02 Thread Volkan Yazici (Jira)


 [ 
https://issues.apache.org/jira/browse/LOG4J2-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Volkan Yazici updated LOG4J2-3471:
--
Fix Version/s: 2.18.0
   (was: 2.17.3)

> log4j-1.2-api 2.17.2 throws NullPointerException while removing appender with 
> name as null
> --
>
> Key: LOG4J2-3471
> URL: https://issues.apache.org/jira/browse/LOG4J2-3471
> Project: Log4j 2
>  Issue Type: Bug
>Affects Versions: 2.17.2
>Reporter: Rajesh
>Assignee: Gary D. Gregory
>Priority: Major
> Fix For: 2.18.0
>
>
> The log4j 1.2 bridge for 2.17.2 throws null pointer exception while removing 
> Null appender
> viz. org.apache.log4j.varia.NullAppender 
> The class AppenderAttachableImpl adds the null appender to the 
> concurrenthashmap as "null" and on removal there is no check for null and 
> removes the nullappender with name null hence the NullPointerexception.
> Caused by: java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.remove(Unknown Source)
> at 
> org.apache.log4j.helpers.AppenderAttachableImpl.removeAppender(AppenderAttachableImpl.java:93)
> at org.apache.log4j.Category.removeAppender(Category.java:618)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)


[jira] [Updated] (LOG4J2-3471) log4j-1.2-api-2.17.2 throws NullPointerException while removing appender with name as null

2022-04-07 Thread Gary D. Gregory (Jira)


 [ 
https://issues.apache.org/jira/browse/LOG4J2-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory updated LOG4J2-3471:

Summary: log4j-1.2-api-2.17.2 throws NullPointerException while removing 
appender with name as null  (was: log4j-1.2-api-2.17.2 throws exception while 
removing appender with name as null)

> log4j-1.2-api-2.17.2 throws NullPointerException while removing appender with 
> name as null
> --
>
> Key: LOG4J2-3471
> URL: https://issues.apache.org/jira/browse/LOG4J2-3471
> Project: Log4j 2
>  Issue Type: Bug
>Affects Versions: 2.17.2
>Reporter: Rajesh
>Assignee: Gary D. Gregory
>Priority: Major
>
> The log4j 1.2 bridge for 2.17.2 throws null pointer exception while removing 
> Null appender
> viz. org.apache.log4j.varia.NullAppender 
> The class AppenderAttachableImpl adds the null appender to the 
> concurrenthashmap as "null" and on removal there is no check for null and 
> removes the nullappender with name null hence the NullPointerexception.
> Caused by: java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.remove(Unknown Source)
> at 
> org.apache.log4j.helpers.AppenderAttachableImpl.removeAppender(AppenderAttachableImpl.java:93)
> at org.apache.log4j.Category.removeAppender(Category.java:618)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (LOG4J2-3471) log4j-1.2-api 2.17.2 throws NullPointerException while removing appender with name as null

2022-04-07 Thread Gary D. Gregory (Jira)


 [ 
https://issues.apache.org/jira/browse/LOG4J2-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory updated LOG4J2-3471:

Summary: log4j-1.2-api 2.17.2 throws NullPointerException while removing 
appender with name as null  (was: log4j-1.2-api-2.17.2 throws 
NullPointerException while removing appender with name as null)

> log4j-1.2-api 2.17.2 throws NullPointerException while removing appender with 
> name as null
> --
>
> Key: LOG4J2-3471
> URL: https://issues.apache.org/jira/browse/LOG4J2-3471
> Project: Log4j 2
>  Issue Type: Bug
>Affects Versions: 2.17.2
>Reporter: Rajesh
>Assignee: Gary D. Gregory
>Priority: Major
>
> The log4j 1.2 bridge for 2.17.2 throws null pointer exception while removing 
> Null appender
> viz. org.apache.log4j.varia.NullAppender 
> The class AppenderAttachableImpl adds the null appender to the 
> concurrenthashmap as "null" and on removal there is no check for null and 
> removes the nullappender with name null hence the NullPointerexception.
> Caused by: java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.remove(Unknown Source)
> at 
> org.apache.log4j.helpers.AppenderAttachableImpl.removeAppender(AppenderAttachableImpl.java:93)
> at org.apache.log4j.Category.removeAppender(Category.java:618)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)