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 jones189
, 1 year ago
kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
via Stack Overflow by Sagar balai
, 11 months ago
kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
via Stack Overflow by Ömer Faruk Aktaş
, 5 months ago
kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
via Stack Overflow by Trynx91
, 1 year ago
via Stack Overflow by mgaido
, 1 year ago
kafka.cluster.Broker cannot be cast to kafka.cluster.BrokerEndPoint
via Stack Overflow by fady zohdy
, 1 year ago
kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
java.lang.ClassCastException: kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6$$anonfun$apply$7.apply(KafkaCluster.scala:97)	at scala.Option.map(Option.scala:146)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6.apply(KafkaCluster.scala:97)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3$$anonfun$apply$6.apply(KafkaCluster.scala:94)	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)	at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)	at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:35)	at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:252)	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3.apply(KafkaCluster.scala:94)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2$$anonfun$3.apply(KafkaCluster.scala:93)	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)	at scala.collection.immutable.Set$Set1.foreach(Set.scala:79)	at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:252)	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:104)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2.apply(KafkaCluster.scala:93)	at org.apache.spark.streaming.kafka.KafkaCluster$$anonfun$2.apply(KafkaCluster.scala:92)	at scala.util.Either$RightProjection.flatMap(Either.scala:522)	at org.apache.spark.streaming.kafka.KafkaCluster.findLeaders(KafkaCluster.scala:92)	at org.apache.spark.streaming.kafka.KafkaCluster.getLeaderOffsets(KafkaCluster.scala:186)	at org.apache.spark.streaming.kafka.KafkaCluster.getLeaderOffsets(KafkaCluster.scala:168)	at org.apache.spark.streaming.kafka.KafkaCluster.getLatestLeaderOffsets(KafkaCluster.scala:157)	at org.apache.spark.streaming.kafka.KafkaUtils$$anonfun$5.apply(KafkaUtils.scala:215)	at org.apache.spark.streaming.kafka.KafkaUtils$$anonfun$5.apply(KafkaUtils.scala:211)	at scala.util.Either$RightProjection.flatMap(Either.scala:522)	at org.apache.spark.streaming.kafka.KafkaUtils$.getFromOffsets(KafkaUtils.scala:211)	at org.apache.spark.streaming.kafka.KafkaUtils$.createDirectStream(KafkaUtils.scala:484)	at org.apache.spark.streaming.kafka.KafkaUtils$.createDirectStream(KafkaUtils.scala:607)	at org.apache.spark.streaming.kafka.KafkaUtils.createDirectStream(KafkaUtils.scala)	at SparkStream.main(SparkStream.java:28)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)