org.apache.kafka.common.KafkaException

Failed to construct kafka consumer

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web96

  • Stack trace

    • org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:702) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:557) 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) Caused by: 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.<init>(KafkaConsumer.java:637) ... 23 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    HronomHronom
    16 times, last one
    Unknown visitor
    Unknown visitorOnce,
    maxximaxxi
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    6 more bugmates