Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2304

Log4j2 2.8.2 JMX unregister NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 3.0.0, 2.11.1
    • Component/s: Configurators
    • Labels:
      None

      Description

      2018-04-04 14:07:07,545 pool-2-thread-1 ERROR Could not unregister MBeans for org.apache.logging.log4j2:type=Default java.lang.NullPointerException
      at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:336)
      at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:259)
      at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:247)
      at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:338)
      at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:279)
      at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:109)
      at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:74)
      at java.lang.Thread.run(Thread.java:745)

      2018-04-04 14:07:07,548 pool-2-thread-1 ERROR Could not unregister MBeans for org.apache.logging.log4j2:type=Default,component=StatusLogger java.lang.NullPointerException
      at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:336)
      at org.apache.logging.log4j.core.jmx.Server.unregisterStatusLogger(Server.java:288)
      at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:262)
      at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:247)
      at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:338)
      at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:279)
      at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:109)
      at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:74)
      at java.lang.Thread.run(Thread.java:745)

       

       

      [2018/04/04 14:07:07.534] WARNING com.caucho.jmx.AbstractMBeanServer java.lang.IllegalStateException: JMX context EnvironmentClassLoader[web-app:http://localhost:8001] has been closed.
      [2018/04/04 14:07:07.534] at com.caucho.jmx.EnvironmentMBeanServer.createContext(EnvironmentMBeanServer.java:101)
      [2018/04/04 14:07:07.534] at com.caucho.jmx.GlobalMBeanServer.createContext(GlobalMBeanServer.java:77)
      [2018/04/04 14:07:07.534] at com.caucho.jmx.AbstractMBeanServer.createContext(AbstractMBeanServer.java:77)
      [2018/04/04 14:07:07.534] at com.caucho.jmx.GlobalMBeanServer.getView(GlobalMBeanServer.java:115)
      [2018/04/04 14:07:07.534] at com.caucho.jmx.AbstractMBeanServer.queryNames(AbstractMBeanServer.java:551)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.jmx.Server.unregisterAllMatching(Server.java:335)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:259)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.jmx.Server.unregisterLoggerContext(Server.java:247)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:338)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:279)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:109)
      [2018/04/04 14:07:07.534] at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:74)
      [2018/04/04 14:07:07.534] at java.lang.Thread.run(Thread.java:745)
      [2018/04/04 14:07:07.534]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wu560130911 wumengsheng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: