java.util.NoSuchElementException

tip

Check if the field you try to read really exists in the database. If it is optional, just use com.mongodb.casbah.commons.MongoDBObject#getAs


rprp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Trait ASM Mixin Crash
    via GitHub by calclavia
    ,
  • Core: deal with missing groups
    via GitHub by slandelle
    ,
  • Crash in Tuple rewiring
    via GitHub by Roldak
    ,
    • java.util.NoSuchElementException: key not found: StructType(StructField(user,IntegerType,false), StructField(product,IntegerType,false), StructField(rating,DoubleType,false)) at scala.collection.MapLike$class.default(MapLike.scala:228) at scala.collection.AbstractMap.default(Map.scala:59) at scala.collection.MapLike$class.apply(MapLike.scala:141) at scala.collection.AbstractMap.apply(Map.scala:59) at org.apache.spark.h2o.utils.ReflectionUtils$.vecTypeFor(ReflectionUtils.scala:132) at org.apache.spark.h2o.converters.SparkDataFrameConverter$$anonfun$3.apply(SparkDataFrameConverter.scala:68) at org.apache.spark.h2o.converters.SparkDataFrameConverter$$anonfun$3.apply(SparkDataFrameConverter.scala:68) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234) at scala.collection.Iterator$class.foreach(Iterator.scala:893) at scala.collection.AbstractIterator.foreach(Iterator.scala:1336) at scala.collection.IterableLike$class.foreach(IterableLike.scala:72) at scala.collection.AbstractIterable.foreach(Iterable.scala:54) at scala.collection.TraversableLike$class.map(TraversableLike.scala:234) at scala.collection.AbstractTraversable.map(Traversable.scala:104) at org.apache.spark.h2o.converters.SparkDataFrameConverter$.toH2OFrame(SparkDataFrameConverter.scala:68) at org.apache.spark.h2o.H2OContext.asH2OFrame(H2OContext.scala:132) at org.apache.spark.h2o.H2OContext.asH2OFrame(H2OContext.scala:130) at com.poc.sample.RecommendataionAlgo$.main(RecommendataionAlgo.scala:54) at com.poc.sample.RecommendataionAlgo.main(RecommendataionAlgo.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:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

    Users with the same issue

    AdarroAdarro
    17 times, last one,
    rprp
    3 times, last one,
    poroszdporoszd
    1 times, last one,
    MarkMark
    2 times, last one,
    jokesterjokester
    1 times, last one,
    13 more bugmates