logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1500) Merging configurations fail when comparing Nodes with different attributes
Date Fri, 05 Aug 2016 19:40:20 GMT

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

Gary Gregory commented on LOG4J2-1500:
--------------------------------------

Would you be willing to create a unit test?

> Merging configurations fail when comparing Nodes with different attributes
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-1500
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1500
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configurators
>    Affects Versions: 2.6.2
>            Reporter: Jose Leon
>
> When you pass two configurations and there are different Nodes in the Root logger a NPE
gets thrown.
> Example stub configuration 1
> {code:xml}
> <Loggers>
>   <Root level="...">
>     <AppenderRef ref="STDOUT">
>     <Property name="hostname">server1</Property>
>   </Root>
> </Loggers>
> {code}
> Example stub configuration 2
> {code:xml}
> <Loggers>
>   <Root level="...">
>     <AppenderRef ref="STDOUT">
>     <AppenderRef ref="File">
>   </Root>
> </Loggers>
> {code}
> Failure happens because DefaultMergeStrategy.isSameName() and isSameReference() calls
get() without checking for null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message