org.apache.kafka.common.KafkaException: Failed to construct kafka consumer

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 Stack Overflow by sortega
, 1 year ago
via Google Groups by Afsar Alam, 11 months ago
Failed to construct kafka consumer
via Stack Overflow by Apeksha Agnihotri
, 5 months ago
via GitHub by enothereska
, 1 year ago
Failed to construct kafka consumer
via GitHub by ppf2
, 1 year ago
Failed to construct kafka consumer
java.lang.ClassCastException: class org.apache.kafka.clients.consumer.RangeAssignor
at java.lang.Class.asSubclass(Class.java:3404)
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:332)
at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:225)
at org.apache.kafka.clients.consumer.KafkaConsumer.(KafkaConsumer.java:637)
at cakesolutions.kafka.KafkaConsumer$.apply(KafkaConsumer.scala:128)
at com.jobandtalent.kafka.client.KafkaTopic.com$jobandtalent$kafka$client$KafkaTopic$$buildConsumer$1(KafkaTopic.scala:37)
at com.jobandtalent.kafka.client.KafkaTopic$$anonfun$initialize$1$1.apply(KafkaTopic.scala:30)
at com.jobandtalent.kafka.client.KafkaTopic$$anonfun$initialize$1$1.apply(KafkaTopic.scala:29)
at fs2.Task$$anonfun$delay$1.apply(Task.scala:187)
at fs2.Task$$anonfun$delay$1.apply(Task.scala:187)
at fs2.Task$$anonfun$suspend$1$$anonfun$2.apply(Task.scala:195)
at fs2.Task$$anonfun$suspend$1$$anonfun$2.apply(Task.scala:195)
at fs2.util.Attempt$.apply(Attempt.scala:12)
at fs2.Task$$anonfun$suspend$1.apply(Task.scala:195)
at fs2.Task$$anonfun$suspend$1.apply(Task.scala:195)
at fs2.internal.Future.step(Future.scala:54)
at fs2.internal.Future.listen(Future.scala:30)
at fs2.internal.Future.runAsync(Future.scala:69)
at fs2.Task.unsafeRunAsync(Task.scala:96)
at fs2.Task$Ref$$anonfun$set$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(Task.scala:332)
at fs2.Strategy$$anon$3$$anon$4.run(Strategy.scala:54)
at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

Users with the same issue

12 times, 4 months ago
16 times, 11 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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