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

GitHub | ligadata-william | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.ClassCastException

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

    at com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply()
  2. com.ligadata.tools
    SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply
    1. com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply(SimpleKafkaProducer.scala:382)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    2. com.ligadata.tools.SimpleKafkaProducer$$anonfun$processJsonDoc$2.apply(SimpleKafkaProducer.scala:381)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    2 frames
  3. Scala
    List.foreach
    1. scala.collection.immutable.List.foreach(List.scala:381)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0]
    1 frame
  4. com.ligadata.tools
    SimpleKafkaProducer$$anonfun$main$7$$anon$2$$anonfun$run$1.apply
    1. com.ligadata.tools.SimpleKafkaProducer$.processJsonDoc(SimpleKafkaProducer.scala:381)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    2. com.ligadata.tools.SimpleKafkaProducer$.processJsonFile(SimpleKafkaProducer.scala:319)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    3. com.ligadata.tools.SimpleKafkaProducer$.ProcessFile(SimpleKafkaProducer.scala:175)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    4. 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]
    5. 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]
    6. 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]
    7. com.ligadata.tools.SimpleKafkaProducer$.com$ligadata$tools$SimpleKafkaProducer$$elapsed(SimpleKafkaProducer.scala:406)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    8. 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]
    9. 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]
    9 frames
  5. Scala
    ArrayOps$ofRef.foreach
    1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0]
    2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)[ExtDependencyLibs2_2.11-1.4.3.jar:1.0]
    2 frames
  6. com.ligadata.tools
    SimpleKafkaProducer$$anonfun$main$7$$anon$2.run
    1. com.ligadata.tools.SimpleKafkaProducer$$anonfun$main$7$$anon$2.run(SimpleKafkaProducer.scala:607)[simplekafkaproducer_2.11-1.4.3.jar:1.4.3]
    1 frame
  7. Scala Actors library
    ThreadPoolExecutor$Worker.run
    1. scala.actors.threadpool.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1060)[ExtDependencyLibs_2.11-1.4.3.jar:1.0]
    2. scala.actors.threadpool.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)[ExtDependencyLibs_2.11-1.4.3.jar:1.0]
    2 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_92]
    1 frame