Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Status 500 – Internal Server Error

Franklin August 16, 2018

HTTP Status 500 – Internal Server Error


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)

 

1 answer

0 votes
Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2018

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!

Franklin August 16, 2018

Hey @Kirubel Tesfaye

Thank you!

Where is the bean id?

How can I change it?

Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2018

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.

Like matthias-hertel likes this
Franklin August 16, 2018

 I find the bean id in log

I want to change the bean id

Which file should I change to change bean id?

Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2018

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

Franklin August 16, 2018

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 

HTTP Status 500 – Internal Server Error


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)
Franklin August 16, 2018

When I set the confluence`s Database,it will tell me this mistake

Like # people like this
Franklin August 16, 2018

I use this图片1.png图片2.png图片3.png图片4.png图片5.png图片6.pngQQ截图20180817103955.png

Like snippetbucket likes this
Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2018

@Franklin,

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.

Kirubel Tesfaye
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events