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

Kafka Streams logs exception on startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • streams
    • None

    Description

      Kafka Streams expects a version resource at /kafka/kafka-streams-version.properties. It is read by ClientMetrics, initialised by

      https://github.com/apache/kafka/blob/3.3.0/streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java#L894

      When the resource is not found,

      https://github.com/apache/kafka/blob/3.3.0/streams/src/main/java/org/apache/kafka/streams/internals/metrics/ClientMetrics.java#L55

      logs a warning at startup:
      org.apache.kafka.streams.internals.metrics.ClientMetrics <clinit> WARN: Error while loading kafka-streams-version.properties
      java.lang.NullPointerException: inStream parameter is null
      at java.base/java.util.Objects.requireNonNull(Objects.java:233)
      at java.base/java.util.Properties.load(Properties.java:407)
      at org.apache.kafka.streams.internals.metrics.ClientMetrics.<clinit>(ClientMetrics.java:53)
      at org.apache.kafka.streams.KafkaStreams.<init>(KafkaStreams.java:894)
      at org.apache.kafka.streams.KafkaStreams.<init>(KafkaStreams.java:856)
      at org.apache.kafka.streams.KafkaStreams.<init>(KafkaStreams.java:826)
      at org.apache.kafka.streams.KafkaStreams.<init>(KafkaStreams.java:738)

      Attachments

        Issue Links

          Activity

            People

              eikemeier Oliver Eikemeier
              eikemeier Oliver Eikemeier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: