javax.management.RuntimeMBeanException

RuntimeException thrown in preDeregister method

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web96

  • via Google Groups by hal.hil...@gmail.com, 1 year ago
    RuntimeException thrown in preDeregister method
  • via GitHub by hdeadman
    , 9 months ago
    RuntimeException thrown in preDeregister method
  • RuntimeException thrown in preDeregister method
  • Stack trace

    • javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister method at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.throwMBeanRegistrationException(DefaultMBeanServerInterceptor.java:985) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1047) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:433) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.unregisterMBeans(ClassLoaderLeakPreventor.java:996) at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.contextDestroyed(ClassLoaderLeakPreventor.java:831) at org.test.memleak.ClassloaderMemoryLeakAvoidanceListener.contextDestroyed(ClassloaderMemoryLeakAvoidanceListener.java:21) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:827) at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1404) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1330) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1552) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:285) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1141) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1349) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: The MBeanServerDelegate MBean cannot be unregistered at com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.preDeregister(MBeanServerDelegateImpl.java:120) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preDeregisterInvoke(DefaultMBeanServerInterceptor.java:1045) ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.