Skip to content

NPE when attempting to expose JaxWs Port Proxy via mbean exporter [SPR-7011] #11676

@spring-projects-issues

Description

@spring-projects-issues

Karl Palsson opened SPR-7011 and commented

Not critically important, but if you try and use the MBean exporter (org.springframework.jmx.export.MBeanExporter) to export a web services client (JaxWsPortProxyFactoryBean) then you get an NPE

MBeanExporter.adaptMBeanIfPossible() gets a null back from AopUtils.getTargetClass(), (probably right?)
then JmxUtils.getMXBeanInterface() tries to find the superclass of a null class.

Probably the getMXBeanInterface() should be made null safe?


Affects: 3.0.1

Referenced from: commits 296aa96

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions