org.apache.kafka.common.KafkaException

Error creating mbean attribute for metricName :MetricName [name=throttle-time, group=Produce, description=Tracking average throttle-time per client, tags={client-id=something:12345}]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web14

  • Error creating mbean attribute for metricName :MetricName [name=throttle-time, group=Produce, description=Tracking average throttle-time per client, tags={client-id=something:12345}]
  • Error registering mbean kafka.consumer:type=consumer-node-metrics,client-id=consumer-1,node-id=node--1
  • Error unregistering mbean
  • Stack trace

    • org.apache.kafka.common.KafkaException: Error creating mbean attribute for metricName :MetricName [name=throttle-time, group=Produce, description=Tracking average throttle-time per client, tags={client-id=something:12345}] at org.apache.kafka.common.metrics.JmxReporter.addAttribute(JmxReporter.java:113) at org.apache.kafka.common.metrics.JmxReporter.metricChange(JmxReporter.java:76) at org.apache.kafka.common.metrics.Metrics.registerMetric(Metrics.java:288) at org.apache.kafka.common.metrics.Sensor.add(Sensor.java:162) at kafka.server.ClientQuotaManager.getOrCreateQuotaSensors(ClientQuotaManager.scala:209) at kafka.server.ClientQuotaManager.recordAndMaybeThrottle(ClientQuotaManager.scala:111) at kafka.server.KafkaApis$$anonfun$handleProducerRequest$1.apply(KafkaApis.scala:370) at kafka.server.KafkaApis$$anonfun$handleProducerRequest$1.apply(KafkaApis.scala:370) at kafka.server.ReplicaManager.appendMessages(ReplicaManager.scala:348) at kafka.server.KafkaApis.handleProducerRequest(KafkaApis.scala:365) at kafka.server.KafkaApis.handle(KafkaApis.scala:68) at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:60) at java.lang.Thread.run(Thread.java:745) Caused by: javax.management.MalformedObjectNameException: Invalid character ':' in value part of property at javax.management.ObjectName.construct(ObjectName.java:618) at javax.management.ObjectName.<init>(ObjectName.java:1382) at org.apache.kafka.common.metrics.JmxReporter$KafkaMbean.<init>(JmxReporter.java:169) at org.apache.kafka.common.metrics.JmxReporter.addAttribute(JmxReporter.java:108) ... 13 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Once, 8 months ago
    11 more bugmates