java.lang.ClassCastException: scala.math.BigInt cannot be cast to java.lang.String

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

java.lang.ClassCastException: scala.math.BigInt cannot be cast to java.lang.String
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply(SimpleKafkaProducer.scala:382)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply(SimpleKafkaProducer.scala:381)
at com.ligadata.tools.SimpleKafkaProducer$.processJsonDoc(SimpleKafkaProducer.scala:381)
at com.ligadata.tools.SimpleKafkaProducer$.processJsonFile(SimpleKafkaProducer.scala:319)
at com.ligadata.tools.SimpleKafkaProducer$.ProcessFile(SimpleKafkaProducer.scala:175)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply$mcV$sp(SimpleKafkaProducer.scala:611)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply(SimpleKafkaProducer.scala:611)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply(SimpleKafkaProducer.scala:611)
at com.ligadata.tools.SimpleKafkaProducer$.com$ligadata$tools$SimpleKafkaProducer$$elapsed(SimpleKafkaProducer.scala:406)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1.apply(SimpleKafkaProducer.scala:611)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1.apply(SimpleKafkaProducer.scala:607)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2.run(SimpleKafkaProducer.scala:607)
at scala.actors.threadpool.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1060)
at java.lang.Thread.run(Thread.java:745)

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.