java.lang.ClassCastException: org.apache.avro.generic.GenericData$Recor d cannot be cast to org.bdgenomics.formats.avro.NucleotideContigFragment


Solutions on the web2

Solution icon of googlegroups
via Google Groups by Sungwook Yoon, 9 months ago
org.apache.avro.generic.GenericData$Recor d cannot be cast to org.bdgenomics.formats.avro.NucleotideContigFragment

Solution icon of googlegroups
via Google Groups by Sungwook Yoon, 9 months ago
org.apache.avro.generic.GenericData$Record cannot be cast to org.bdgenomics.formats.avro.NucleotideContigFragment

Stack trace

java.lang.ClassCastException: org.apache.avro.generic.GenericData$Recor
d cannot be cast to org.bdgenomics.formats.avro.NucleotideContigFragment
	at org.bdgenomics.adam.rdd.contig.NucleotideContigFragmentRDDFunctions.getSequenceRecordsFromElement(NucleotideContigFragmentRDDFunctions.scala:39)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator.org$bdgenomics$adam$rdd$ADAMSequenceDictionaryRDDAggregator$$mergeRecords$1(ADAMRDDFunctions.scala:105)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator$$anonfun$2.apply(ADAMRDDFunctions.scala:117)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator$$anonfun$2.apply(ADAMRDDFunctions.scala:117)
	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:144)
	at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:144)
	at scala.collection.Iterator$class.foreach(Iterator.scala:727)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
	at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:144)
	at scala.collection.AbstractIterator.foldLeft(Iterator.scala:1157)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator.org$bdgenomics$adam$rdd$ADAMSequenceDictionaryRDDAggregator$$foldIterator$1(ADAMRDDFunctions.scala:117)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator$$anonfun$adamGetSequenceDictionary$1.apply(ADAMRDDFunctions.scala:121)
	at org.bdgenomics.adam.rdd.ADAMSequenceDictionaryRDDAggregator$$anonfun$adamGetSequenceDictionary$1.apply(ADAMRDDFunctions.scala:121)
	at org.apache.spark.rdd.RDD$$anonfun$14.apply(RDD.scala:634)
	at org.apache.spark.rdd.RDD$$anonfun$14.apply(RDD.scala:634)
	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
	at org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)
	at org.apache.spark.scheduler.Task.run(Task.scala:64)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:203)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

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.