org.mule.api.MuleRuntimeException: MBeans Failed to initialise

MuleSoft JIRA | Daniel Zapata | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When I run the facebook ibean JUnit (live tests : FacebookTestCase) against BETA-10-SNAPSHOT, I get the following error: org.mule.api.MuleRuntimeException: MBeans Failed to initialise at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:585) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:565) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:123) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:221) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:174) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:425) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:240) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:395) at junit.framework.TestCase.runBare(TestCase.java:132) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:277) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:256) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.management.InstanceAlreadyExistsException: Mule.a4ab627d-d16d-4795-a1a9-c370742043ec:type=org.mule.Connector,name="connector.http.0" at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.mule.module.management.agent.JmxAgent.registerConnectorServices(JmxAgent.java:440) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:581) ... 24 more The same test works against the released BETA-9. It also works on both versions using the Mock version of the tests. Ping me for a valid 'live' configuration to use.

    MuleSoft JIRA | 7 years ago | Daniel Zapata
    org.mule.api.MuleRuntimeException: MBeans Failed to initialise
  2. 0

    When I run the facebook ibean JUnit (live tests : FacebookTestCase) against BETA-10-SNAPSHOT, I get the following error: org.mule.api.MuleRuntimeException: MBeans Failed to initialise at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:585) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:565) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:123) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:221) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:174) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:425) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:240) at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:395) at junit.framework.TestCase.runBare(TestCase.java:132) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:277) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:256) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: javax.management.InstanceAlreadyExistsException: Mule.a4ab627d-d16d-4795-a1a9-c370742043ec:type=org.mule.Connector,name="connector.http.0" at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.mule.module.management.agent.JmxAgent.registerConnectorServices(JmxAgent.java:440) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:581) ... 24 more The same test works against the released BETA-9. It also works on both versions using the Mock version of the tests. Ping me for a valid 'live' configuration to use.

    MuleSoft JIRA | 7 years ago | Daniel Zapata
    org.mule.api.MuleRuntimeException: MBeans Failed to initialise
  3. 0

    Apps fails to deploy successfully because of: javax.management.InstanceAlreadyExistsException: Mule.summit-demo-1.0-SNAPSHOT:type=Statistics,name=AllStatistics See logs: INFO 2012-04-24 12:37:02,563 [WrapperListener_start_runner] org.mule.module.management.agent.WrapperManagerAgent: Mule is embedded in a container already launched by a wrapper.Duplicates will not be registered. Use the org.tanukisoftware.wrapper:type=WrapperManager MBean instead for control. ERROR 2012-04-24 12:37:02,565 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy app 'summit-demo-1.0-SNAPSHOT', see + + below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.module.launcher.DeploymentException: Failed to deploy application [summit-demo-1.0-SNAPSHOT] at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:58) at org.mule.module.launcher.DeploymentService.guardedDeploy(DeploymentService.java:381) at org.mule.module.launcher.DeploymentService.start(DeploymentService.java:179) at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:56) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:3925) Caused by: org.mule.api.MuleRuntimeException: MBeans Failed to initialise at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:707) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:685) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:122) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:249) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:200) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:433) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:250) at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:151) at org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) ... 9 more Caused by: javax.management.InstanceAlreadyExistsException: Mule.summit-demo-1.0-SNAPSHOT:type=Statistics,name=AllStatistics at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.mule.module.management.agent.JmxAgent.registerStatisticsService(JmxAgent.java:352) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:695) ... 19 more

    MuleSoft JIRA | 5 years ago | Emiliano Lesende
    org.mule.module.launcher.DeploymentException: Failed to deploy application [summit-demo-1.0-SNAPSHOT]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apps fails to deploy successfully because of: javax.management.InstanceAlreadyExistsException: Mule.summit-demo-1.0-SNAPSHOT:type=Statistics,name=AllStatistics See logs: INFO 2012-04-24 12:37:02,563 [WrapperListener_start_runner] org.mule.module.management.agent.WrapperManagerAgent: Mule is embedded in a container already launched by a wrapper.Duplicates will not be registered. Use the org.tanukisoftware.wrapper:type=WrapperManager MBean instead for control. ERROR 2012-04-24 12:37:02,565 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy app 'summit-demo-1.0-SNAPSHOT', see + + below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.module.launcher.DeploymentException: Failed to deploy application [summit-demo-1.0-SNAPSHOT] at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:58) at org.mule.module.launcher.DeploymentService.guardedDeploy(DeploymentService.java:381) at org.mule.module.launcher.DeploymentService.start(DeploymentService.java:179) at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:56) at org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:3925) Caused by: org.mule.api.MuleRuntimeException: MBeans Failed to initialise at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:707) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:685) at org.mule.context.notification.Sender.dispatch(Sender.java:40) at org.mule.context.notification.Policy.dispatch(Policy.java:122) at org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:249) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:200) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:433) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:250) at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:151) at org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) ... 9 more Caused by: javax.management.InstanceAlreadyExistsException: Mule.summit-demo-1.0-SNAPSHOT:type=Statistics,name=AllStatistics at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.mule.module.management.agent.JmxAgent.registerStatisticsService(JmxAgent.java:352) at org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:695) ... 19 more

    MuleSoft JIRA | 5 years ago | Emiliano Lesende
    org.mule.module.launcher.DeploymentException: Failed to deploy application [summit-demo-1.0-SNAPSHOT]
  6. 0

    metrics-guice Registers instrumented MBeans multiple times

    GitHub | 5 years ago | jhalterman
    javax.management.InstanceAlreadyExistsException: com.test.package:type=T,name=dosomething
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.management.InstanceAlreadyExistsException

    Mule.a4ab627d-d16d-4795-a1a9-c370742043ec:type=org.mule.Connector,name="connector.http.0"

    at com.sun.jmx.mbeanserver.Repository.addMBean()
  2. Java RT
    JmxMBeanServer.registerMBean
    1. com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
    2. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
    3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
    4. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
    5. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
    6. com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    6 frames
  3. Management Extensions
    JmxAgent$MuleContextStartedListener.onNotification
    1. org.mule.module.management.agent.JmxAgent.registerConnectorServices(JmxAgent.java:440)
    2. org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:581)
    3. org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:565)
    3 frames
  4. Mule Core
    DefaultMuleContext.start
    1. org.mule.context.notification.Sender.dispatch(Sender.java:40)
    2. org.mule.context.notification.Policy.dispatch(Policy.java:123)
    3. org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:221)
    4. org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:174)
    5. org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:425)
    6. org.mule.DefaultMuleContext.start(DefaultMuleContext.java:240)
    6 frames
  5. Mule Functional Test Framework (TCK)
    AbstractMuleTestCase.setUp
    1. org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase.java:395)
    1 frame
  6. JUnit
    TestCase.runBare
    1. junit.framework.TestCase.runBare(TestCase.java:132)
    1 frame
  7. Mule Functional Test Framework (TCK)
    AbstractMuleTestCase.runBare
    1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:277)
    1 frame
  8. JUnit
    TestCase.run
    1. junit.framework.TestResult$1.protect(TestResult.java:110)
    2. junit.framework.TestResult.runProtected(TestResult.java:128)
    3. junit.framework.TestResult.run(TestResult.java:113)
    4. junit.framework.TestCase.run(TestCase.java:124)
    4 frames
  9. Mule Functional Test Framework (TCK)
    AbstractMuleTestCase.run
    1. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:256)
    1 frame
  10. JUnit
    JUnit38ClassRunner.run
    1. junit.framework.TestSuite.runTest(TestSuite.java:232)
    2. junit.framework.TestSuite.run(TestSuite.java:227)
    3. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    3 frames
  11. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
    1 frame
  12. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    5 frames