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-users by Joel Koshy, 1 year ago
Compacted topic cannot accept message without key.
via kafka-users by Dave Peterson, 1 year ago
Compacted topic cannot accept message without key.
kafka.message.InvalidMessageException: Compacted topic cannot accept
 message without key.	at kafka.message.ByteBufferMessageSet.validateMessagesAndAssignOffsets(ByteBufferMessageSet.scala:250)	at kafka.log.Log.liftedTree1$1(Log.scala:327)	at kafka.log.Log.append(Log.scala:326)	at kafka.cluster.Partition$$anonfun$9.apply(Partition.scala:442)	at kafka.cluster.Partition$$anonfun$9.apply(Partition.scala:428)	at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:262)	at kafka.utils.CoreUtils$.inReadLock(CoreUtils.scala:268)	at kafka.cluster.Partition.appendMessagesToLeader(Partition.scala:428)	at kafka.server.ReplicaManager$$anonfun$appendToLocalLog$2.apply(ReplicaManager.scala:401)	at kafka.server.ReplicaManager$$anonfun$appendToLocalLog$2.apply(ReplicaManager.scala:386)	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)	at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)	at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)	at scala.collection.mutable.HashMap.foreach(HashMap.scala:98)	at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)	at scala.collection.AbstractTraversable.map(Traversable.scala:105)	at kafka.server.ReplicaManager.appendToLocalLog(ReplicaManager.scala:386)	at kafka.server.ReplicaManager.appendMessages(ReplicaManager.scala:322)	at kafka.server.KafkaApis.handleProducerRequest(KafkaApis.scala:366)	at kafka.server.KafkaApis.handle(KafkaApis.scala:68)	at kafka.server.KafkaRequestHandler.run(KafkaRequestHandler.scala:60)	at java.lang.Thread.run(Thread.java:745)