JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-6189

Failed to initialise app. MBean Exception.

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.1.4 (EE only), 3.2.3 (EE only), 3.3.0
  • Component/s: Core: Lifecycle
  • Labels:
    None
  • User impact:
    Very High
  • Similar Issues:
    None

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    summit-demo-1.0-SNAPSHOT-without-credentials.zip
    24/Apr/12 10:50 AM
    7.31 MB
    Emiliano Lesende
    1. File
      classes/credentials.properties 0.2 kB
    2. File
      classes/log4j.properties 0.7 kB
    3. XML File
      classes/mule-config.xml 5 kB
    4. File
      classes/sobject-to-remoteissue.grf 17 kB
    5. Java Archive File
      lib/axis-1.4-osgi.jar 1.54 MB
    6. Java Archive File
      lib/bayeux-api-2.2.0.jar 25 kB
    7. Java Archive File
      lib/cglib-nodep-2.2.jar 315 kB
    8. Java Archive File
      lib/cometd-java-client-2.2.0.jar 57 kB
    9. Java Archive File
      lib/cometd-java-common-2.2.0.jar 14 kB
    10. Java Archive File
      lib/commons-codec-1.3-osgi.jar 47 kB
    11. Java Archive File
      lib/commons-discovery-0.4-osgi.jar 76 kB
    12. Java Archive File
      lib/commons-logging-1.0.4.jar 37 kB
    13. Java Archive File
      lib/fastpass-1.0.0.jar 4 kB
    14. Java Archive File
      lib/geronimo-jaxrpc_1.1_spec-1.1-osgi.jar 36 kB
    15. Java Archive File
      lib/javax.inject-1.jar 2 kB
    16. Java Archive File
      lib/jetty-client-7.4.0.v20110414.jar 70 kB
    17. Java Archive File
      lib/jetty-http-7.4.0.v20110414.jar 105 kB
    18. Java Archive File
      lib/jetty-io-7.4.0.v20110414.jar 86 kB
    19. Java Archive File
      lib/jetty-util-7.4.0.v20110414.jar 202 kB
    20. Java Archive File
      lib/js-1.7R2.jar 851 kB
    21. Java Archive File
      lib/log4j-1.2.16.jar 470 kB
    22. Java Archive File
      lib/mule-devkit-annotations-3.3-RC3.jar 37 kB
    23. Java Archive File
      lib/mule-module-annotations-3.3.0-RC3-SNAPSHOT.jar 65 kB
    24. Java Archive File
      lib/mule-module-data-mapper-3.2.0-SNAPSHOT.jar 70 kB
    25. Java Archive File
      lib/mule-module-getsatisfaction-1.0-SNAPSHOT.jar 240 kB
    26. Java Archive File
      lib/mule-module-jira-2.2-SNAPSHOT.jar 1.65 MB
    27. Java Archive File
      lib/mule-module-sfdc-4.3-SNAPSHOT.jar 1.04 MB
    28. Java Archive File
      lib/mule-module-twilio-1.2-SNAPSHOT.jar 724 kB
    29. Java Archive File
      lib/oauth-core-1.0.0.jar 58 kB
    30. Java Archive File
      lib/validation-api-1.0.0.GA.jar 46 kB
    Showing 30 of 32 items Download Zip
    Show
    Zip Archive
    summit-demo-1.0-SNAPSHOT-without-credentials.zip
    24/Apr/12 10:50 AM
    7.31 MB
    Emiliano Lesende

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Mariano de Achaval added a comment - 24/Apr/12 04:39 PM - 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 - 24/Apr/12 04:39 PM - 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
Permalink
Pablo Kraan added a comment - 25/Apr/12 06:51 PM

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 - 25/Apr/12 06:51 PM 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
Hide
Permalink
Pablo Kraan added a comment - 25/Apr/12 08:07 PM

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

Show
Pablo Kraan added a comment - 25/Apr/12 08:07 PM 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
Vote (0)
Watch (0)

Dates

  • Created:
    24/Apr/12 10:36 AM
    Updated:
    25/Apr/12 08:07 PM
    Resolved:
    25/Apr/12 08:07 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.