Mule
  1. Mule
  2. MULE-6189

Failed to initialise app. MBean Exception.

    Details

    • User impact:
      Very High
    • Similar Issues:
      MULE-8748Deployent service is not undeploying an app after deployment failed
      MULE-456ExceptionStrategies are initialised multiple times
      MULE-8809Transformer not initialised used implicitly
      MULE-1744Review initialisation code for all objects
      MULE-582An endpoint that is used by multiple receivers breaks MBean registration (JMX Agent)
      MULE-6174App fails to start when defining a choice exception strategy in configuration element
      MULE-5605printHtmlSummary will fail if there are no elements in the mule app
      MULE-1609loanbroker example throws ConfigurationException: MuleManager Failed to initialise
      MULE-7017initialise() phase is triggered before all objects are registered
      MULE-2251OracleInContainerJmsConnector: Initialisation Failure

      Description

      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

        Activity

        Hide
        Mariano de Achaval added a comment - - edited

        In order to reproduce (It happens to me at 3.2.2-DM)
        1) I copy my zipped app to the apps dir
        2) Start mule
        3) Stop mule
        4) Copy the same zipped app to the apps dir (a redeploy) without out deleting my old app
        5) Start mule

        Starting the Mule Container...
        WrapperManager: Initializing...
        INFO 2012-04-24 18:35:42,750 [WrapperListener_start_runner] org.mule.module.launcher.MuleContainer:
        **********************************************************************

        • Mule ESB and Integration Platform *
        • Version: 3.2.2-DM Build: 24339 *
        • MuleSoft, Inc. *
        • For more information go to http://www.mulesoft.org *
        • *
        • Server started: 4/24/12 6:35 PM *
        • JDK: 1.6.0_24 (mixed mode) *
        • OS: Mac OS X (10.6.8, x86_64) *
        • Host: donkey.local (172.16.20.140) *
          **********************************************************************
          WARN 2012-04-24 18:35:42,767 [WrapperListener_start_runner] com.mulesoft.mule.cluster.boot.ClusterCoreExtension: No cluster ID was specified – High Availability will be disabled:
          INFO 2012-04-24 18:35:42,786 [WrapperListener_start_runner] org.mule.module.launcher.DefaultMuleDeployer: Exploding a Mule application archive: file:/Users/machaval/Downloads/mule-enterprise-standalone-3.2.2-DM/apps/bug-array.zip
          INFO 2012-04-24 18:35:42,959 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication:
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          + New app 'bug-array' +
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          INFO 2012-04-24 18:35:46,965 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService:
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          + Started app 'bug-array' +
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          INFO 2012-04-24 18:35:46,965 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication:
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          + New app 'bug-array' +
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          ERROR 2012-04-24 18:35:47,549 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService:
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          + Failed to deploy app 'bug-array', see below +
          ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
          org.mule.module.launcher.DeploymentException: Failed to deploy application [bug-array]
          at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:68)
          at org.mule.module.launcher.DeploymentService.start(DeploymentService.java:171)
          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:244)
          at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:197)
          at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:404)
          at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:226)
          at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:146)
          at org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107)
          at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:52)
          ... 8 more
          Caused by: javax.management.InstanceAlreadyExistsException: Mule.bug-array: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)
          ... 18 more
          INFO 2012-04-24 18:35:47,551 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication:

        WORKAROUND
        Delete old app dir

        Show
        Mariano de Achaval added a comment - - edited In order to reproduce (It happens to me at 3.2.2-DM) 1) I copy my zipped app to the apps dir 2) Start mule 3) Stop mule 4) Copy the same zipped app to the apps dir (a redeploy) without out deleting my old app 5) Start mule Starting the Mule Container... WrapperManager: Initializing... INFO 2012-04-24 18:35:42,750 [WrapperListener_start_runner] org.mule.module.launcher.MuleContainer: ********************************************************************** Mule ESB and Integration Platform * Version: 3.2.2-DM Build: 24339 * MuleSoft, Inc. * For more information go to http://www.mulesoft.org * * Server started: 4/24/12 6:35 PM * JDK: 1.6.0_24 (mixed mode) * OS: Mac OS X (10.6.8, x86_64) * Host: donkey.local (172.16.20.140) * ********************************************************************** WARN 2012-04-24 18:35:42,767 [WrapperListener_start_runner] com.mulesoft.mule.cluster.boot.ClusterCoreExtension: No cluster ID was specified – High Availability will be disabled: INFO 2012-04-24 18:35:42,786 [WrapperListener_start_runner] org.mule.module.launcher.DefaultMuleDeployer: Exploding a Mule application archive: file:/Users/machaval/Downloads/mule-enterprise-standalone-3.2.2-DM/apps/bug-array.zip INFO 2012-04-24 18:35:42,959 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'bug-array' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2012-04-24 18:35:46,965 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'bug-array' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2012-04-24 18:35:46,965 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'bug-array' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2012-04-24 18:35:47,549 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Failed to deploy app 'bug-array', see below + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ org.mule.module.launcher.DeploymentException: Failed to deploy application [bug-array] at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:68) at org.mule.module.launcher.DeploymentService.start(DeploymentService.java:171) 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:244) at org.mule.context.notification.ServerNotificationManager.fireNotification(ServerNotificationManager.java:197) at org.mule.DefaultMuleContext.fireNotification(DefaultMuleContext.java:404) at org.mule.DefaultMuleContext.start(DefaultMuleContext.java:226) at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:146) at org.mule.module.launcher.application.ApplicationWrapper.start(ApplicationWrapper.java:107) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:52) ... 8 more Caused by: javax.management.InstanceAlreadyExistsException: Mule.bug-array: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) ... 18 more INFO 2012-04-24 18:35:47,551 [WrapperListener_start_runner] org.mule.module.launcher.application.DefaultMuleApplication: WORKAROUND Delete old app dir
        Hide
        Pablo Kraan added a comment -

        The problem is cause by some changes in the DeploymentService class, both deployed and zipped apps where deployed at mule start, causing the error. The issue also existed when mule was started using the app argument with -app appX:appX:appX

        Show
        Pablo Kraan added a comment - The problem is cause by some changes in the DeploymentService class, both deployed and zipped apps where deployed at mule start, causing the error. The issue also existed when mule was started using the app argument with -app appX:appX:appX
        Show
        Pablo Kraan added a comment - Fix 3.1.x http://fisheye.codehaus.org/changelog/mule/?cs=24354 Fix 3.2.x http://fisheye.codehaus.org/changelog/mule/?cs=24355 Fix 3.3.x http://fisheye.codehaus.org/changelog/mule/?cs=24356 Fix 3.x http://fisheye.codehaus.org/changelog/mule/?cs=24357

          People

          • Assignee:
            Pablo Kraan
            Reporter:
            Emiliano Lesende
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development