HTTP Status 500 ? Internal Server Error
Asked by Franklin:

HTTP Status 500 -- Internal Server Error {#toc-hId-1822143477}
--------------------------------------------------------------

*** ** * ** ***

**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)
```


Answers:
author: Kirubel Tesfaye
body: Hey [@Franklin](/t5/user/viewprofilepage/user-id/1809814),

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!

comments: author: Franklin
body: Hey [@Kirubel Tesfaye](/t5/user/viewprofilepage/user-id/1201817)

Thank you!

Where is the bean id?

How can I change it?


author: Kirubel Tesfaye
body: hello again [@Franklin](/t5/user/viewprofilepage/user-id/1809814),

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.


author: Franklin
body: I find the bean id in log  

I want to change the bean id

Which file should I change to change bean id?


author: Kirubel Tesfaye
body: 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

<https://confluence.atlassian.com/confkb/unable-to-start-confluence-due-to-jmx-182158269.html?_ga=2.137795126.703459604.1534410422-1688932066.1529406557>


author: Franklin
body: hello [@Kirubel Tesfaye](/t5/user/viewprofilepage/user-id/1201817)

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

HTTP Status 500 -- Internal Server Error {#toc-hId-1822172217}
--------------------------------------------------------------

*** ** * ** ***

**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)
```


author: Franklin
body: When I set the confluence\`s Database,it will tell me this mistake


author: Franklin
body: I use this![??1.png](https://community.atlassian.com/t5/image/serverpage/image-id/29788iB751DF30AB8AB104/image-size/large?v=v2&px=999 "??1.png")![??2.png](https://community.atlassian.com/t5/image/serverpage/image-id/29789iA2FDA4095E5D4319/image-size/large?v=v2&px=999 "??2.png")![??3.png](https://community.atlassian.com/t5/image/serverpage/image-id/29790i1E7EE9E139F5D4DF/image-size/large?v=v2&px=999 "??3.png")![??4.png](https://community.atlassian.com/t5/image/serverpage/image-id/29791i0D8643408432F8EA/image-size/large?v=v2&px=999 "??4.png")![??5.png](https://community.atlassian.com/t5/image/serverpage/image-id/29792i237F5529805651C4/image-size/large?v=v2&px=999 "??5.png")![??6.png](https://community.atlassian.com/t5/image/serverpage/image-id/29793i50A2243399F74C58/image-size/large?v=v2&px=999 "??6.png")![QQ??20180817103955.png](https://community.atlassian.com/t5/image/serverpage/image-id/29794i31C751E7412E80D9/image-size/large?v=v2&px=999 "QQ??20180817103955.png")


author: Kirubel Tesfaye
body: [@Franklin](/t5/user/viewprofilepage/user-id/1809814),

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** .


author: Kirubel Tesfaye
body: 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>


Tags: confluence-server

server