spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.61k stars 38.13k forks source link

javax.management.MalformedObjectNameException: Missing ':' character in ObjectName exception. [SPR-782] #5509

Closed spring-projects-issues closed 19 years ago

spring-projects-issues commented 19 years ago

Scott Battaglia opened SPR-782 and commented

From an email I sent to Rob... <<<<<<<<<< Rob,

I switched from using the JMX in the Sandbox to the one now going to be used in 1.2RC1. However, I'm having some issues with it.

I have my bean that I want exposed set up to use CommonsAttributes.

I have the MBeanExporter use the default Naming Strategy. When I deploy I get a javax.management.MalformedObjectNameException: Missing ':' character in ObjectName exception.

So I tried swapping in the MetadataNamingStrategy which gives me a different error: javax.management.MalformedObjectNameException: Your bean class [javax.management.remote.jmxmp.JMXMPConnectorServer] must be marked with a valid ManagedResource attribute when using MetadataNamingStrategy

This never happened with the JMX that was in the sandbox. Is there some additional parameter I need to set?


Affects: 1.2 RC1

Attachments:

spring-projects-issues commented 19 years ago

Scott Battaglia commented

Rob, this is the configuration file I was using. I tried to put comments in the two spots where I tried different things.

spring-projects-issues commented 19 years ago

Rob Harrop commented

Fixed - autodetection will no longer fail if an MBean has an invalid ObjectName.