I saw some commits flying by in that area recently but I didn’t look closely. 
Could that be related?

Remko 

(Shameless plug) Every java main() method deserves http://picocli.info

> On Apr 11, 2018, at 4:50, Gary Gregory <garydgreg...@gmail.com> wrote:
> 
> When I change my log4j XML config file and I have status logging set to
> DEBUG, I see:
> 
> 2018-04-10 13:48:43,895 Log4j2-TF-1-ConfiguratonFileWatcher-3 ERROR Could
> not register mbeans javax.management.InstanceAlreadyExistsException:
> org.apache.logging.log4j2:type=6d06d69c
> at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown
> Source)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown
> Source)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
> at org.apache.logging.log4j.core.jmx.Server.register(Server.java:393)
> at
> org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:168)
> at
> org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:141)
> at
> org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:558)
> at
> org.apache.logging.log4j.core.LoggerContext.onChange(LoggerContext.java:670)
> at
> org.apache.logging.log4j.core.config.ConfiguratonFileWatcher$ReconfigurationRunnable.run(ConfiguratonFileWatcher.java:68)
> at java.lang.Thread.run(Unknown Source)
> 
> Should we not have unregistered while shutting down the previous config?
> 
> Gary
  • [Log4j] Mikael Ståldal
    • [log4j] Gary Gregory
      • Re: [log4j] Remko Popma

Reply via email to