javax.management.RuntimeMBeanException: RuntimeException thrown in preDeregister method

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by hdeadman
, 1 year ago
RuntimeException thrown in preDeregister method
via GitHub by notz
, 2 years ago
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)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:433)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415)
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 java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.