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

GitHub | seuchoi | 4 months ago
  1. 0

    Error for importvcf

    GitHub | 4 months ago | seuchoi
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  2. 0

    Dataflow issue

    GitHub | 4 months ago | jtkoskel
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  3. 0

    [SPARK-10642] Crash in rdd.lookup() with "java.lang.Long cannot be cast to java.lang.Integer" - ASF JIRA

    apache.org | 1 year ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running this command: {code} sc.parallelize([(('a', 'b'), 'c')]).groupByKey().partitionBy(20).cache().lookup(('a', 'b')) {code} gives the following error: {noformat} 15/09/16 14:22:23 INFO SparkContext: Starting job: runJob at PythonRDD.scala:361 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/Cellar/apache-spark/1.5.0/libexec/python/pyspark/rdd.py", line 2199, in lookup return self.ctx.runJob(values, lambda x: x, [self.partitioner(key)]) File "/usr/local/Cellar/apache-spark/1.5.0/libexec/python/pyspark/context.py", line 916, in runJob port = self._jvm.PythonRDD.runJob(self._jsc.sc(), mappedRDD._jrdd, partitions) File "/usr/local/Cellar/apache-spark/1.5.0/libexec/python/lib/py4j-0.8.2.1-src.zip/py4j/java_gateway.py", line 538, in __call__ File "/usr/local/Cellar/apache-spark/1.5.0/libexec/python/pyspark/sql/utils.py", line 36, in deco return f(*a, **kw) File "/usr/local/Cellar/apache-spark/1.5.0/libexec/python/lib/py4j-0.8.2.1-src.zip/py4j/protocol.py", line 300, in get_return_value py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.runJob. : 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.scheduler.DAGScheduler$$anonfun$submitJob$1.apply(DAGScheduler.scala:530) at scala.collection.Iterator$class.find(Iterator.scala:780) at scala.collection.AbstractIterator.find(Iterator.scala:1157) at scala.collection.IterableLike$class.find(IterableLike.scala:79) at scala.collection.AbstractIterable.find(Iterable.scala:54) at org.apache.spark.scheduler.DAGScheduler.submitJob(DAGScheduler.scala:530) at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:558) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1813) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1826) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1839) at org.apache.spark.api.python.PythonRDD$.runJob(PythonRDD.scala:361) at org.apache.spark.api.python.PythonRDD.runJob(PythonRDD.scala) at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:379) at py4j.Gateway.invoke(Gateway.java:259) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:207) at java.lang.Thread.run(Thread.java:745) {noformat}

    Apache's JIRA Issue Tracker | 1 year ago | Thouis Jones
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
  6. 0

    Building queries with dynamic columns in conditions

    GitHub | 3 years ago | cvogt
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

  1. balintn 5 times, last 2 weeks ago
  2. kid 2 times, last 3 months ago
  3. tyson925 9 times, last 4 months ago
  4. poroszd 3 times, last 4 months ago
  5. rp 4 times, last 9 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

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

    at scala.runtime.BoxesRunTime.unboxToInt()
  2. Scala
    BoxesRunTime.unboxToInt
    1. scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:106)
    1 frame
  3. Spark
    OrderedRDD$$anonfun$calculateKeyRanges$1.apply
    1. org.apache.spark.rdd.OrderedRDD$$anonfun$calculateKeyRanges$1.apply(OrderedRDD.scala:143)
    2. org.apache.spark.rdd.OrderedRDD$$anonfun$calculateKeyRanges$1.apply(OrderedRDD.scala:142)
    2 frames
  4. Scala
    ArrayOps$ofRef.foreach
    1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
    2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
    2 frames
  5. Spark
    OrderedRDD$.apply
    1. org.apache.spark.rdd.OrderedRDD$.calculateKeyRanges(OrderedRDD.scala:142)
    2. org.apache.spark.rdd.OrderedRDD$.apply(OrderedRDD.scala:117)
    2 frames
  6. org.broadinstitute.hail
    Main$$anonfun$runCommands$1.apply
    1. org.broadinstitute.hail.RichPairRDD$.toOrderedRDD$extension(Utils.scala:482)
    2. org.broadinstitute.hail.io.vcf.LoadVCF$.apply(LoadVCF.scala:267)
    3. org.broadinstitute.hail.driver.ImportVCF$.run(ImportVCF.scala:85)
    4. org.broadinstitute.hail.driver.ImportVCF$.run(ImportVCF.scala:31)
    5. org.broadinstitute.hail.driver.Command.runCommand(Command.scala:239)
    6. org.broadinstitute.hail.driver.Main$.runCommand(Main.scala:120)
    7. org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1$$anonfun$1.apply(Main.scala:144)
    8. org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1$$anonfun$1.apply(Main.scala:144)
    9. org.broadinstitute.hail.Utils$.time(Utils.scala:1282)
    10. org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1.apply(Main.scala:143)
    11. org.broadinstitute.hail.driver.Main$$anonfun$runCommands$1.apply(Main.scala:137)
    11 frames
  7. Scala
    ArrayOps$ofRef.foldLeft
    1. scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
    2. scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
    3. scala.collection.mutable.ArrayOps$ofRef.foldLeft(ArrayOps.scala:108)
    3 frames
  8. org.broadinstitute.hail
    Main.main
    1. org.broadinstitute.hail.driver.Main$.runCommands(Main.scala:137)
    2. org.broadinstitute.hail.driver.Main$.main(Main.scala:286)
    3. org.broadinstitute.hail.driver.Main.main(Main.scala)
    3 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  10. Spark
    SparkSubmit$.main
    1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
    2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
    3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
    4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
    4 frames