Type Exception Report
Message Unable to register MBean [com.atlassian.confluence.jmx.TaskQueueWrapper@1848fc13] with key 'Confluence:name=MailTaskQueue'; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueue
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.atlassian.confluence.jmx.TaskQueueWrapper@1848fc13] with key 'Confluence:name=MailTaskQueue'; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueue org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)
Hey @Franklin,
This exception is thrown because you might declare another bean with the same id as 'MailTaskQueue'.
Solution #1:
I recommend that you change the bean id. It is an easy solution if there aren't other dependency on bean.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello again @Franklin,
The bean id is
key 'Confluence:name=MailTaskQueue'
change MailTaskQueue into other name.
If this doesn't work, could you elaborate on what were you trying to do when this exception was thrown.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After seeing your stacktrace...It seems like more of a permission issue rather than confliciting bean id. Check out this knowledge article to find resolution to jmx error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @Kirubel Tesfaye
I change the bean id
<entry key="Confluence:name=MailTaskQueueFranklin">
<bean class="com.atlassian.confluence.jmx.TaskQueueWrapper"><constructor-arg
ref="mailTaskQueue"/></bean>
</entry>
but it told me
Type Exception Report
Message Unable to register MBean [com.atlassian.confluence.jmx.TaskQueueWrapper@2bd79177] with key 'Confluence:name=MailTaskQueueFranklin'; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueueFranklin
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.atlassian.confluence.jmx.TaskQueueWrapper@2bd79177] with key 'Confluence:name=MailTaskQueueFranklin'; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueueFranklin org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550) org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:792) org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444) org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326) com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22) com.atlassian.confluence.tenant.TenantedContainerContext.refresh(TenantedContainerContext.java:24) com.atlassian.confluence.setup.actions.AbstractSetupAction.lambda$transitionFromColdToVacantState$0(AbstractSetupAction.java:152) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145) com.atlassian.confluence.setup.actions.AbstractSetupAction.transitionFromColdToVacantState(AbstractSetupAction.java:159) com.atlassian.confluence.setup.actions.SetupEmbeddedDatabaseAction.setupDatabase(SetupEmbeddedDatabaseAction.java:19) com.atlassian.confluence.setup.actions.AbstractDatabaseCreationAction.execute(AbstractDatabaseCreationAction.java:36) com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) com.atlassian.confluence.core.ConfluenceLicenseInterceptor.intercept(ConfluenceLicenseInterceptor.java:66) com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) com.atlassian.confluence.validation.MessageHolderInterceptor.intercept(MessageHolderInterceptor.java:37) com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have other deployed atlassian product using the same tomcat server? If so deploying multiple Atlassian applications in a single Tomcat container is not supported.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't have other atlassian product installed try the resolution in the link below.
https://confluence.atlassian.com/confkb/unable-to-start-confluence-due-to-jmx-182158269.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.