kafka.common.KafkaException: Can't parse json string: null

kafka-users | Jason Huang | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Can't start Kafka server with 0.8.0.

    kafka-users | 4 years ago | Jason Huang
    kafka.common.KafkaException: Can't parse json string: null
  2. 0

    Re: Can't start Kafka server with 0.8.0.

    kafka-users | 4 years ago | Jason Huang
    kafka.common.KafkaException: Can't parse json string: null
  3. 0

    [jira] [Commented] (KAFKA-797) Cannot start Kafka 0.8 per Quick Start instructions

    kafka-dev | 4 years ago | Bob (JIRA)
    kafka.common.KafkaException: Can't parse json string: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How does a kafka of one have issues becoming a leader? ERROR Error while electing or becoming leader on broker

    kafka-users | 3 years ago | David Montgomery
    kafka.common.KafkaException: Can't parse json string: null
  6. 0

    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. java.lang.NullPointerException

      No message provided

      at scala.util.parsing.combinator.lexical.Scanners$Scanner.<init>()
    2. scala-parser-combinators
      JSON$.parseFull
      1. scala.util.parsing.combinator.lexical.Scanners$Scanner.<init>(Scanners.scala:52)
      2. scala.util.parsing.json.JSON$.parseRaw(JSON.scala:71)
      3. scala.util.parsing.json.JSON$.parseFull(JSON.scala:85)
      3 frames
    3. Apache Kafka
      ZkUtils$$anonfun$getReplicaAssignmentForTopics$2.apply
      1. kafka.utils.Json$.liftedTree1$1(Json.scala:17)
      2. kafka.utils.Json$.parseFull(Json.scala:16)
      3. kafka.utils.ZkUtils$$anonfun$getReplicaAssignmentForTopics$2.apply(ZkUtils.scala:498)
      4. kafka.utils.ZkUtils$$anonfun$getReplicaAssignmentForTopics$2.apply(ZkUtils.scala:494)
      4 frames
    4. Scala
      List.foreach
      1. scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
      2. scala.collection.immutable.List.foreach(List.scala:45)
      2 frames
    5. Apache Kafka
      Kafka.main
      1. kafka.utils.ZkUtils$.getReplicaAssignmentForTopics(ZkUtils.scala:494)
      2. kafka.controller.KafkaController.initializeControllerContext(KafkaController.scala:446)
      3. kafka.controller.KafkaController.onControllerFailover(KafkaController.scala:220)
      4. kafka.controller.KafkaController$$anonfun$1.apply$mcV$sp(KafkaController.scala:85)
      5. kafka.server.ZookeeperLeaderElector.elect(ZookeeperLeaderElector.scala:53)
      6. kafka.server.ZookeeperLeaderElector.startup(ZookeeperLeaderElector.scala:43)
      7. kafka.controller.KafkaController.startup(KafkaController.scala:381)
      8. kafka.server.KafkaServer.startup(KafkaServer.scala:90)
      9. kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:34)
      10. kafka.Kafka$.main(Kafka.scala:46)
      11. kafka.Kafka.main(Kafka.scala)
      11 frames