Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6171

[1.0.0] Logging is broken with Windows and Java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.0.0
    • None
    • log
    • None
    • Windows 10, Java 9.0.1 and 10 build 29

    Description

      When I start a Kafka server on Windows using Java 9.0.1 (same for 10 build 29), then I get the following error:
      {{[2017-11-04 10:05:11,457] WARN Error processing kafka.log:type=LogManager,name=LogDirectoryOffline,logDirectory=C:\Zimmermann\kafka\logs (com.yammer.metrics.reporting.JmxReporter)
      javax.management.MalformedObjectNameException: Invalid character ':' in value part of property
      at java.management/javax.management.ObjectName.construct(ObjectName.java:621)
      at java.management/javax.management.ObjectName.<init>(ObjectName.java:1406)
      at com.yammer.metrics.reporting.JmxReporter.onMetricAdded(JmxReporter.java:395)
      at com.yammer.metrics.core.MetricsRegistry.notifyMetricAdded(MetricsRegistry.java:516)
      at com.yammer.metrics.core.MetricsRegistry.getOrAdd(MetricsRegistry.java:491)
      at com.yammer.metrics.core.MetricsRegistry.newGauge(MetricsRegistry.java:79)
      at kafka.metrics.KafkaMetricsGroup$class.newGauge(KafkaMetricsGroup.scala:74)
      at kafka.log.LogManager.newGauge(LogManager.scala:50)
      at kafka.log.LogManager$$anonfun$6.apply(LogManager.scala:117)
      at kafka.log.LogManager$$anonfun$6.apply(LogManager.scala:116)
      at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
      at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
      at kafka.log.LogManager.<init>(LogManager.scala:116)
      at kafka.log.LogManager$.apply(LogManager.scala:799)
      at kafka.server.KafkaServer.startup(KafkaServer.scala:222)
      at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
      at kafka.Kafka$.main(Kafka.scala:92)
      at kafka.Kafka.main(Kafka.scala)}}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              juergen.zimmermann Juergen Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: