Skip to content
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

ManagementService.destroy fails to find HazelcastMBean on shutdown #683

Closed
MrEasy opened this issue Aug 15, 2013 · 3 comments
Closed

ManagementService.destroy fails to find HazelcastMBean on shutdown #683

MrEasy opened this issue Aug 15, 2013 · 3 comments
Assignees
Milestone

Comments

@MrEasy
Copy link
Contributor

MrEasy commented Aug 15, 2013

Hazelcast 3.0

If the instance name contains special characters as in "[:",=*?]", then HazelcastMBean is registered successfully by quoting them, see com.hazelcast.jmx.HazelcastMBean.createObjectName(), but on shutdown, the MBean is tried to get unregistered without this quoting in com.hazelcast.jmx.ManagementService.destroy(), which then fails with the error below.

Error while un-registering MBeans: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:618) [rt.jar:1.7.0_25]
at javax.management.ObjectName.(ObjectName.java:1382) [rt.jar:1.7.0_25]
at com.hazelcast.jmx.ManagementService.destroy(ManagementService.java:72)
at com.hazelcast.instance.LifecycleServiceImpl.shutdown(LifecycleServiceImpl.java:76)

@pveentjer
Copy link
Contributor

Which Hazelcast version?

@MrEasy
Copy link
Contributor Author

MrEasy commented Aug 15, 2013

sorry: 3.0

@pveentjer
Copy link
Contributor

Thanks. PS: We are currently a bit overloaded, so if you can make a fix....

@ghost ghost assigned gurbuzali Aug 16, 2013
mdogan added a commit that referenced this issue Aug 18, 2013
ManagementService register/unregister fixes #683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants