when i use the same jave program to construct and run multiple graphs i get the following error:
INFO [WatchDog] - Thread started.
INFO [WatchDog] - Running on 2 CPU(s) max available memory for JVM 65088 KB
javax.management.InstanceAlreadyExistsException: org.jetel.graph.runtime:type=CloverJMX
at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
at org.jetel.graph.runtime.WatchDog.registerTrackingMBean(WatchDog.java:193)INFO [WatchDog] - [Clover] Initializing phase: 1
DEBUG [WatchDog] - initializing edges:
all of the graphs, if built correctly, executes successfully
INFO [WatchDog] - Thread started.
INFO [WatchDog] - Running on 2 CPU(s) max available memory for JVM 65088 KB
javax.management.InstanceAlreadyExistsException: org.jetel.graph.runtime:type=CloverJMX
at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
at org.jetel.graph.runtime.WatchDog.registerTrackingMBean(WatchDog.java:193)INFO [WatchDog] - [Clover] Initializing phase: 1
DEBUG [WatchDog] - initializing edges:
all of the graphs, if built correctly, executes successfully
-
Thanks for report Nathan, we will fix this bug in next release.
Martin -
Is there a solution found since this time ? because I've the same error without the aborting of the graph. -
Well, this should have been fixed already.
I assume you are running two instances of graph at the same time. Clover uses graph's name to register JMXBean which then can be used for querying various aspects of graph's runtime.
If you choose two different names for your graphs, it should work ok.
The other option is to run Clover without JMX - option -noJMX for the runGraph command line utility -
Thank you for your answer
Please sign in to leave a comment.
Comments 4