logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1483) jmx resin
Date Wed, 27 Jul 2016 09:04:20 GMT

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

Remko Popma commented on LOG4J2-1483:
-------------------------------------

Can you share your log4j2 configuration so we can try to reproduce the issue?

> jmx resin
> ---------
>
>                 Key: LOG4J2-1483
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1483
>             Project: Log4j 2
>          Issue Type: Question
>          Components: JMX
>    Affects Versions: 2.6.2
>         Environment: jdk1.8,resin3
>            Reporter: lizhou
>            Priority: Trivial
>
> 1.pool-1-thread-1 ERROR Could not unregister MBeans for org.apache.logging.log4j2:type=7276c8cd,component=Loggers,name=*,subtype=RingBuffer
java.lang.NullPointerException
> 	at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:329)
> 	at org.apache.logging.log4j.core.jmx.Server.unregisterAsyncLoggerConfigRingBufferAdmins(Server.java:322)
> 	at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:259)
> 	at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:237)
> 	at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:300)
> 	at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:265)
> 	at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:102)
> 	at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:72)
> 	at java.lang.Thread.run(Thread.java:745)
> 2.main ERROR Could not register mbeans javax.management.InstanceAlreadyExistsException:
org.apache.logging.log4j2:type=7276c8cd,component=Loggers,name=
> 	at com.caucho.jmx.AbstractMBeanServer.registerMBean(AbstractMBeanServer.java:412)
> 	at org.apache.logging.log4j.core.jmx.Server.register(Server.java:380)
> 	at org.apache.logging.log4j.core.jmx.Server.registerLoggerConfigs(Server.java:349)
> 	at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:183)
> 	at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:138)
> 	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:507)
> 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:566)
> 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:582)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at com.efun.general.BeanHelper.invokeMethod(BeanHelper.java:852)
> 	at com.efun.mainland.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:76)
> 	at com.caucho.server.webapp.WebApp.start(WebApp.java:1891)
> 	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
> 	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
> 	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
> 	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:161)
> 	at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:664)
> 	at com.caucho.server.host.Host.start(Host.java:450)
> 	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
> 	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
> 	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
> 	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:161)
> 	at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
> 	at com.caucho.server.cluster.Server.start(Server.java:1319)
> 	at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
> 	at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
> 	at com.caucho.server.resin.Resin.start(Resin.java:703)
> 	at com.caucho.server.resin.Resin.initMain(Resin.java:1162)
> 	at com.caucho.server.resin.Resin.main(Resin.java:1365)



--
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