MBeanExporter#destroy logs warnings about explicitly unregistered mbeans [SPR-9451] #14086
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
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:
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
The text was updated successfully, but these errors were encountered: