java.lang.ClassCastException

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

Solutions on the web19440

  • scala.math.BigInt cannot be cast to java.lang.String
  • scala.math.BigInt cannot be cast to java.lang.Integer
  • Stack trace

    • 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)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply(SimpleKafkaProducer.scala:381)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at scala.collection.immutable.List.foreach(List.scala:381)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0] at com.ligadata.tools.SimpleKafkaProducer$.processJsonDoc(SimpleKafkaProducer.scala:381)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$.processJsonFile(SimpleKafkaProducer.scala:319)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$.ProcessFile(SimpleKafkaProducer.scala:175)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply$mcV$sp(SimpleKafkaProducer.scala:611)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply(SimpleKafkaProducer.scala:611)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1$$anonfun$apply$1.apply(SimpleKafkaProducer.scala:611)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$.com$ligadata$tools$SimpleKafkaProducer$$elapsed(SimpleKafkaProducer.scala:406)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1.apply(SimpleKafkaProducer.scala:611)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1.apply(SimpleKafkaProducer.scala:607)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0] at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0] at com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2.run(SimpleKafkaProducer.scala:607)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3] at scala.actors.threadpool.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1060)[ExtDependencyLibs_2.11-1.4.3.jar:1.0] at scala.actors.threadpool.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)[ExtDependencyLibs_2.11-1.4.3.jar:1.0] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_92]

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.