javax.management.InstanceAlreadyExistsException: org.apache.ZooKeeperService:name0=LeaderElection

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Apache's JIRA Issue Tracker by Michael Han, 1 year ago
org.apache.ZooKeeperService:name0=LeaderElection
via Apache's JIRA Issue Tracker by Michael Han, 1 year ago
org.apache.ZooKeeperService:name0=LeaderElection
via Stack Overflow by VikasRox
, 2 years ago
org.apache.ZooKeeperService:name0=StandaloneServer_port-1
via Stack Overflow by Mohammad
, 1 year ago
org.apache.ZooKeeperService:name0=StandaloneServer_port-1
via GitHub by jvalkeal
, 2 years ago
org.apache.ZooKeeperService:name0=StandaloneServer_port-1
via Google Groups by Vinay Sudhakaran, 1 year ago
org.apache.ZooKeeperService:name0=StandaloneServer_port-1
javax.management.InstanceAlreadyExistsException: org.apache.ZooKeeperService:name0=LeaderElection
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
at org.apache.zookeeper.jmx.MBeanRegistry.register(MBeanRegistry.java:100)
at org.apache.zookeeper.test.LETest$LEThread.run(LETest.java:57)

Users with the same issue

Once, 3 weeks ago
263 times, 1 month ago
Once, 6 months ago
1270 times, 7 months ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.