sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SLING-6624) LogConfigManager reports incorrect config pid when duplicate categories are defined
Date Thu, 09 Mar 2017 09:23:38 GMT

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

Robert Munteanu commented on SLING-6624:
----------------------------------------

Fixed in [r1786117|https://svn.apache.org/r1786117]

> LogConfigManager reports incorrect config pid when duplicate categories are defined
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-6624
>                 URL: https://issues.apache.org/jira/browse/SLING-6624
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: Commons Log 5.0.0
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: Commons Log 5.0.2
>
>
> When a LogManager factory configuration that includes an already defined category name
is processed, the LogConfigManager throws an exception, for instance:
> {noformat}Updating property org.apache.sling.commons.log.names of configuration org.apache.sling.commons.log.LogManager.factory.config.edfcfd90-27fa-4cfb-a276-b52247e3dc53
caused a problem: Category com.day.cq.compat.codeupgrade already defined by configuration
org.apache.sling.commons.log.LogManager.factory.config.edfcfd90-27fa-4cfb-a276-b52247e3dc53
(org.osgi.service.cm.ConfigurationException: org.apache.sling.commons.log.names : Category
com.day.cq.compat.codeupgrade already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.edfcfd90-27fa-4cfb-a276-b52247e3dc53)
> org.osgi.service.cm.ConfigurationException: org.apache.sling.commons.log.names : Category
com.day.cq.compat.codeupgrade already defined by configuration org.apache.sling.commons.log.LogManager.factory.config.edfcfd90-27fa-4cfb-a276-b52247e3dc53{noformat}
> However, this does not include the pid of the existing configuration, but the new one,
which makes debugging harder.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message