dsukhoroslov / bagri

XML/Document DB on top of distributed cache
Apache License 2.0
41 stars 5 forks source link

[Core] error on second admin start #69

Closed dsukhoroslov closed 8 years ago

dsukhoroslov commented 8 years ago

start cache node. start admin. stop admin. start admin. got error admin log:

2016-10-11 01:18:09.195 [main] INFO  com.hazelcast.internal.jmx.ManagementService - [localhost]:3332 [system] [3.7.2] Hazelcast JMX agent enabled.
2016-10-11 01:18:09.947 [main] WARN  com.hazelcast.internal.jmx.ManagementService - [localhost]:3332 [system] [3.7.2] Error while registering com.hazelcast:instance=hzInstance,type=IMap,name=formats
javax.management.InstanceAlreadyExistsException: com.hazelcast:instance=hzInstance,type=IMap,name=formats
    at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) ~[na:1.8.0_74]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) ~[na:1.8.0_74]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) ~[na:1.8.0_74]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) ~[na:1.8.0_74]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) ~[na:1.8.0_74]
    at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) ~[na:1.8.0_74]
    at com.hazelcast.internal.jmx.ManagementService.registerDistributedObject(ManagementService.java:147) [hazelcast-all-3.7.2.jar:3.7.2]
    at com.hazelcast.internal.jmx.ManagementService.<init>(ManagementService.java:79) [hazelcast-all-3.7.2.jar:3.7.2]
    at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:137) [hazelcast-all-3.7.2.jar:3.7.2]
    at com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:218) [hazelcast-all-3.7.2.jar:3.7.2]
    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:176) [hazelcast-all-3.7.2.jar:3.7.2]
    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:126) [hazelcast-all-3.7.2.jar:3.7.2]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_74]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_74]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_74]
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) [spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) [spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
................
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) [spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
    at com.bagri.xdm.cache.hazelcast.BagriCacheServer.main(BagriCacheServer.java:65) [classes/:na]
dsukhoroslov commented 8 years ago

can not reproduce. even when it happens, it should not affect system's behavior at all. closing..