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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via kafka-users by Jason Huang, 1 year ago
Can't parse json string: null
via kafka-users by Jason Huang, 1 year ago
Can't parse json string: null
via kafka-users by Jason Huang, 1 year ago
Can't parse json string: null
via kafka-users by Neha Narkhede, 1 year ago
Can't parse json string: null
kafka.common.KafkaException: Can't parse json string: null
at scala.util.parsing.combinator.lexical.Scanners$Scanner.(Scanners.scala:52)
at scala.util.parsing.json.JSON$.parseRaw(JSON.scala:71)
at kafka.utils.Json$.liftedTree1$1(Json.scala:17)
at kafka.utils.Json$.parseFull(Json.scala:16)
at kafka.utils.ZkUtils$$anonfun$getReplicaAssignmentForTopics$2.apply(ZkUtils.scala:498)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
at kafka.utils.ZkUtils$.getReplicaAssignmentForTopics(ZkUtils.scala:494)
at kafka.controller.KafkaController.initializeControllerContext(KafkaController.scala:446)
at kafka.controller.KafkaController.onControllerFailover(KafkaController.scala:220)
at kafka.controller.KafkaController$$anonfun$1.apply$mcV$sp(KafkaController.scala:85)
at kafka.server.ZookeeperLeaderElector.elect(ZookeeperLeaderElector.scala:53)
at kafka.server.ZookeeperLeaderElector.startup(ZookeeperLeaderElector.scala:43)
at kafka.controller.KafkaController.startup(KafkaController.scala:381)
at kafka.server.KafkaServer.startup(KafkaServer.scala:90)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:34)
at kafka.Kafka$.main(Kafka.scala:46)
at kafka.Kafka.main(Kafka.scala)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.