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 Spring JIRA by Jean Carriere, 2 years ago
A JMX error occured when trying to assemble the management interface metadata.; nested exception is javax.management.MBeanRegistrationException: preRegister() failed [ObjectName='spring:bean=EHCacheMonitoring', Class
via Spring JIRA by Jean Carriere, 1 year ago
A JMX error occured when trying to assemble the management interface metadata.; nested exception is javax.management.MBeanRegistrationException: preRegister() failed [ObjectName='spring:bean=EHCacheMonitoring', Class
org.springframework.jmx.exceptions.MBeanAssemblyException: A JMX error occured when trying to assemble the management interface metadata.; nested exception is javax.management.MBeanRegistrationException: preRegister() failed [ObjectName='spring:bean=EHCacheMonitoring', Class=javax.management.modelmbean.RequiredModelMBean (javax.management.modelmbean.RequiredModelMBean@f1b95f)] 
MBeanException: preRegister() failed [ObjectName='spring:bean=EHCacheMonitoring', Class=javax.management.modelmbean.RequiredModelMBean (javax.management.modelmbean.RequiredModelMBean@f1b95f)] 
Cause: java.lang.ClassCastException 	at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:160)	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:324)	at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)	at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectReferenceInterceptor.java:59)	at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttributeInterceptor.java:43)	at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceInterceptor2.java:93)	at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)	at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:144)	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)	at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:997)	at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:327)	at org.springframework.jmx.JmxMBeanAdapter.registerSimpleBean(JmxMBeanAdapter.java:295)	at org.springframework.jmx.JmxMBeanAdapter.registerBean(JmxMBeanAdapter.java:272)	at org.springframework.jmx.JmxMBeanAdapter.registerBeans(JmxMBeanAdapter.java:218)	at org.springframework.jmx.JmxMBeanAdapter.afterPropertiesSet(JmxMBeanAdapter.java:117)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1037)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:305)	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:223)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:236)	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:159)	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:261)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:131)	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:177)	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:105)