Skip to content

MBeanExporter#destroy logs warnings about explicitly unregistered mbeans [SPR-9451] #14086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue May 29, 2012 · 0 comments
Assignees
Labels
has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 29, 2012

Andreas Hubold opened SPR-9451 and commented

Method #destroy of org.springframework.jmx.export.MBeanExporter unregisters all beans that have been registered before. It however also tries to unregister beans that have already been unregistered via org.springframework.jmx.export.MBeanExporter#unregisterManagedResource. The MBeanExporter logs a warning for each such bean:

WARN  o.s.jmx.export.MBeanExporter - Could not unregister MBean [...] as said MBean is not registered (perhaps already unregistered by an external process)

The bean was not unregistered by an external process but by the MBeanExporter itself when #unregisterManagedResource was called.

Please do not log this as warning. Administrators get nervous and keep asking what this message means.


Affects: 3.1.1

Issue Links:

Backported to: 3.1.4

10 votes, 3 watchers

@spring-projects-issues spring-projects-issues added type: bug A general bug status: backported An issue that has been backported to maintenance branches in: core Issues in core modules (aop, beans, core, context, expression) has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.2.1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants