org.mule.module.launcher.DeploymentException: Failed to deploy application [summit-demo-1.0-SNAPSHOT]

MuleSoft JIRA | Emiliano Lesende | 5 years ago
  1. 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]
  2. 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]
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    metrics-guice Registers instrumented MBeans multiple times

    GitHub | 5 years ago | jhalterman
    javax.management.InstanceAlreadyExistsException: com.test.package:type=T,name=dosomething

  1. batwalrus76 2 times, last 2 weeks ago
  2. Handemelindo 1 times, last 2 weeks ago
  3. kjhdofjosvs 2 times, last 3 weeks ago
  4. tvrmsmith 2 times, last 1 month ago
  5. davidvanlaatum 54 times, last 2 months ago
3 more registered users
21 unregistered visitors
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.summit-demo-1.0-SNAPSHOT:type=Statistics,name=AllStatistics

    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.registerStatisticsService(JmxAgent.java:352)
    2. org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:695)
    3. org.mule.module.management.agent.JmxAgent$MuleContextStartedListener.onNotification(JmxAgent.java:685)
    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:122)
    3. org.mule.context.notification.ServerNotificationManager.notifyListeners(ServerNotificationManager.java:249)
    4. org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:200)
    5. org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:433)
    6. org.mule.DefaultMuleContext.start(DefaultMuleContext.java:250)
    6 frames
  5. Mule 3 Launcher
    MuleContainer.start
    1. org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:151)
    2. org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107)
    3. org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47)
    4. org.mule.module.launcher.DeploymentService.guardedDeploy(DeploymentService.java:381)
    5. org.mule.module.launcher.DeploymentService.start(DeploymentService.java:179)
    6. org.mule.module.launcher.MuleContainer.start(MuleContainer.java:157)
    6 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  7. Mule 3 Container
    MuleContainerWrapper.start
    1. org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:56)
    1 frame
  8. Java Service Wrapper
    WrapperManager$12.run
    1. org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:3925)
    1 frame