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

Hot problem!
This exception has a lot of traffic. You can help 12 users by writing a short tip.

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

Solutions on the web

via kafka-dev by Bob (JIRA), 1 year ago
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
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:33)
at kafka.utils.Json$.parseFull(Json.scala:32)
at kafka.utils.ZkUtils$$anonfun$getReplicaAssignmentForTopics$1.apply(ZkUtils.scala:529)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
at kafka.utils.ZkUtils$.getReplicaAssignmentForTopics(ZkUtils.scala:525)
at kafka.admin.ReassignPartitionsCommand$.main(ReassignPartitionsCommand.scala:112)
at kafka.admin.ReassignPartitionsCommand.main(ReassignPartitionsCommand.scala)

Users with the same issue

You are the first who have seen this exception.

Write tip

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