java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer

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 GitHub by jtkoskel
, 1 year ago
java.lang.Long cannot be cast to java.lang.Integer
via GitHub by seuchoi
, 1 year ago
java.lang.Long cannot be cast to java.lang.Integer
via Google Groups by Unknown author, 10 months ago
java.lang.String cannot be cast to java.lang.Integer
via GitHub by FRosner
, 2 years ago
java.util.Date cannot be cast to java.lang.Integer
via GitHub by GoogleCodeExporter
, 10 months ago
scala.math.BigInt cannot be cast to java.lang.Integer list(4) ^ called at test.orc:33:53
via GitHub by lfrancioli
, 10 months ago
java.lang.Double cannot be cast to java.lang.Integer
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:106)
at org.apache.spark.rdd.OrderedRDD$$anonfun$calculateKeyRanges$1.apply(OrderedRDD.scala:143)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at org.apache.spark.rdd.OrderedRDD$.calculateKeyRanges(OrderedRDD.scala:142)
at org.apache.spark.rdd.OrderedRDD$.apply(OrderedRDD.scala:117)
at org.broadinstitute.hail.RichPairRDD$.toOrderedRDD$extension(Utils.scala:482)
at org.broadinstitute.hail.io.vcf.LoadVCF$.apply(LoadVCF.scala:267)
at org.broadinstitute.hail.driver.ImportVCF$.run(ImportVCF.scala:85)
at org.broadinstitute.hail.driver.ImportVCF$.run(ImportVCF.scala:31)
at org.broadinstitute.hail.driver.Command.runCommand(Command.scala:239)
at org.broadinstitute.hail.driver.Main$.runCommand(Main.scala:120)
at org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1$$anonfun$1.apply(Main.scala:144)
at org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1$$anonfun$1.apply(Main.scala:144)
at org.broadinstitute.hail.Utils$.time(Utils.scala:1282)
at org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1.apply(Main.scala:143)
at org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1.apply(Main.scala:137)
at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
at org.broadinstitute.hail.driver.Main$.runCommands(Main.scala:137)
at org.broadinstitute.hail.driver.Main$.main(Main.scala:286)
at org.broadinstitute.hail.driver.Main.main(Main.scala)
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:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)

Users with the same issue

Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
2 times, 5 months ago
9 times, 1 year ago
Once, 6 months ago
4 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.