javax.management.InstanceAlreadyExistsException: com.datastax.driver.core:type=Errors,name=write-timeouts

DataStax JIRA | Benjamin Seyinbour | 4 years ago
  1. 0

    These warnings, I would imagine, are harmless, but they are filling up my server.log. A warning should take up only one or two lines, and not throw a length stack trace that is of little use to anyone. I read here ( https://datastax-oss.atlassian.net/browse/JAVA-74) that Metrics -- the cause -- can be disabled to get rid of the warning but I need Metrics. The stack trace below is just one of several same warning thrown. 16:34:57,641 WARN [com.yammer.metrics.reporting.JmxReporter] (MSC service thread 1-8) Error processing com.datastax.driver.core:type=Errors,name=write-timeouts: javax.management.InstanceAlreadyExistsException: com.datastax.driver.core:type=Errors,name=write-timeouts at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) [rt.jar:1.7.0_21] at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513) [rt.jar:1.7.0_21] at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:551) at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:319) at com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:451) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:409) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:16) [metrics-core-2.0.3.jar:] at com.yammer.metrics.core.Counter.processWith(Counter.java:65) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:386) [metrics-core-2.0.3.jar:] at com.yammer.metrics.core.MetricsRegistry.addListener(MetricsRegistry.java:442) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.start(JmxReporter.java:446) [metrics-core-2.0.3.jar:] at com.datastax.driver.core.Metrics.<init>(Metrics.java:76) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:544) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:503) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster.<init>(Cluster.java:65) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster.buildFrom(Cluster.java:93) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:484) [cassandra-driver-core.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.<init>(PersistentUnit.java:423) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.create(PersistentUnit.java:408) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.buildCluster(PersistentUnit.java:85) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:96) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:126) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.repository.AbstractRepository.<clinit>(AbstractRepository.java:108) [xxx-dao.jar:] at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_21] at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_21]

    DataStax JIRA | 4 years ago | Benjamin Seyinbour
    javax.management.InstanceAlreadyExistsException: com.datastax.driver.core:type=Errors,name=write-timeouts
  2. 0

    These warnings, I would imagine, are harmless, but they are filling up my server.log. A warning should take up only one or two lines, and not throw a length stack trace that is of little use to anyone. I read here ( https://datastax-oss.atlassian.net/browse/JAVA-74) that Metrics -- the cause -- can be disabled to get rid of the warning but I need Metrics. The stack trace below is just one of several same warning thrown. 16:34:57,641 WARN [com.yammer.metrics.reporting.JmxReporter] (MSC service thread 1-8) Error processing com.datastax.driver.core:type=Errors,name=write-timeouts: javax.management.InstanceAlreadyExistsException: com.datastax.driver.core:type=Errors,name=write-timeouts at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) [rt.jar:1.7.0_21] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) [rt.jar:1.7.0_21] at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513) [rt.jar:1.7.0_21] at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:551) at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:319) at com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:451) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:409) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:16) [metrics-core-2.0.3.jar:] at com.yammer.metrics.core.Counter.processWith(Counter.java:65) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:386) [metrics-core-2.0.3.jar:] at com.yammer.metrics.core.MetricsRegistry.addListener(MetricsRegistry.java:442) [metrics-core-2.0.3.jar:] at com.yammer.metrics.reporting.JmxReporter.start(JmxReporter.java:446) [metrics-core-2.0.3.jar:] at com.datastax.driver.core.Metrics.<init>(Metrics.java:76) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:544) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:503) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster.<init>(Cluster.java:65) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster.buildFrom(Cluster.java:93) [cassandra-driver-core.jar:] at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:484) [cassandra-driver-core.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.<init>(PersistentUnit.java:423) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.create(PersistentUnit.java:408) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.buildCluster(PersistentUnit.java:85) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:96) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:126) [xxx-dao.jar:] at com.xxxxxx.xxx.dao.repository.AbstractRepository.<clinit>(AbstractRepository.java:108) [xxx-dao.jar:] at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_21] at java.lang.Class.forName(Class.java:266) [rt.jar:1.7.0_21]

    DataStax JIRA | 4 years ago | Benjamin Seyinbour
    javax.management.InstanceAlreadyExistsException: com.datastax.driver.core:type=Errors,name=write-timeouts
  3. 0

    register druid-driver mbean error

    GitHub | 2 years ago | 423272190
    javax.management.InstanceAlreadyExistsException: com.alibaba.druid:type=MockDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MBean for read cache cannot be registered / unregistered

    GitHub | 1 year ago | urugator
    com.orientechnologies.orient.core.exception.OStorageException: Error during registration of read cache MBean.
  6. 0

    issues running boot admin

    GitHub | 8 months ago | harestupramadharma
    org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.boot.actuate.endpoint.jmx.DataEndpointMBean@5e707dc9] with key 'traceEndpoint'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.boot:type=Endpoint,name=traceEndpoint
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.management.InstanceAlreadyExistsException

    com.datastax.driver.core:type=Errors,name=write-timeouts

    at com.sun.jmx.mbeanserver.Repository.addMBean()
  2. Java RT
    JmxMBeanServer.registerMBean
    1. com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)[rt.jar:1.7.0_21]
    2. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)[rt.jar:1.7.0_21]
    3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)[rt.jar:1.7.0_21]
    4. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)[rt.jar:1.7.0_21]
    5. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)[rt.jar:1.7.0_21]
    6. com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:513)[rt.jar:1.7.0_21]
    6 frames
  3. JBoss Application Server: JMX Subsystem
    PluggableMBeanServerImpl.registerMBean
    1. org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:551)
    2. org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:319)
    2 frames
  4. com.yammer.metrics
    JmxReporter.processCounter
    1. com.yammer.metrics.reporting.JmxReporter.registerBean(JmxReporter.java:451)[metrics-core-2.0.3.jar:]
    2. com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:409)[metrics-core-2.0.3.jar:]
    3. com.yammer.metrics.reporting.JmxReporter.processCounter(JmxReporter.java:16)[metrics-core-2.0.3.jar:]
    3 frames
  5. Apache Giraph Core
    Counter.processWith
    1. com.yammer.metrics.core.Counter.processWith(Counter.java:65)[metrics-core-2.0.3.jar:]
    1 frame
  6. com.yammer.metrics
    JmxReporter.onMetricAdded
    1. com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:386)[metrics-core-2.0.3.jar:]
    1 frame
  7. Apache Giraph Core
    MetricsRegistry.addListener
    1. com.yammer.metrics.core.MetricsRegistry.addListener(MetricsRegistry.java:442)[metrics-core-2.0.3.jar:]
    1 frame
  8. com.yammer.metrics
    JmxReporter.start
    1. com.yammer.metrics.reporting.JmxReporter.start(JmxReporter.java:446)[metrics-core-2.0.3.jar:]
    1 frame
  9. DataStax Java Driver for Apache Cassandra - Core
    Cluster$Builder.build
    1. com.datastax.driver.core.Metrics.<init>(Metrics.java:76)[cassandra-driver-core.jar:]
    2. com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:544)[cassandra-driver-core.jar:]
    3. com.datastax.driver.core.Cluster$Manager.<init>(Cluster.java:503)[cassandra-driver-core.jar:]
    4. com.datastax.driver.core.Cluster.<init>(Cluster.java:65)[cassandra-driver-core.jar:]
    5. com.datastax.driver.core.Cluster.buildFrom(Cluster.java:93)[cassandra-driver-core.jar:]
    6. com.datastax.driver.core.Cluster$Builder.build(Cluster.java:484)[cassandra-driver-core.jar:]
    6 frames
  10. com.xxxxxx.xxx
    AbstractRepository.<clinit>
    1. com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.<init>(PersistentUnit.java:423)[xxx-dao.jar:]
    2. com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.create(PersistentUnit.java:408)[xxx-dao.jar:]
    3. com.xxxxxx.xxx.dao.utils.PersistentUnit.buildCluster(PersistentUnit.java:85)[xxx-dao.jar:]
    4. com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:96)[xxx-dao.jar:]
    5. com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:126)[xxx-dao.jar:]
    6. com.xxxxxx.xxx.dao.repository.AbstractRepository.<clinit>(AbstractRepository.java:108)[xxx-dao.jar:]
    6 frames
  11. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[rt.jar:1.7.0_21]
    2. java.lang.Class.forName(Class.java:266)[rt.jar:1.7.0_21]
    2 frames