MBeanExporter fails against null beans [SPR-15031] #19598
Labels
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
Vadim Beilin opened SPR-15031 and commented
org.springframework.jmx.export.MBeanExporter#registerBeanNameOrInstance(Object,String) may encounter situation when the bean value returned by the getBean(beanName) at line 601 is null. One common situation when this happens is when a FactoryBean.getObject() returns null (valid since Spring 2.0) based on some configuration settings.
MBeanExporter or its subclasses cannot deal with this situation:
Example for reproduction:
Tested with 4.2.6, code in either 4.3.x or 5. does not appear to have any changes.
Affects: 3.2.17, 4.2.6
Backported to: 4.2.9, 3.2.18
The text was updated successfully, but these errors were encountered: