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


rp

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

  • NoSuchElementException
    via GitHub by newhoggy
    ,
  • argonaut-monocle issues
    via GitHub by newhoggy
    ,
  • 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: Map(...) 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 monocle.Prism$$anon$7.reverseGet(Prism.scala:292) at monocle.PPrism$$anonfun$modify$1$$anonfun$apply$4.apply(Prism.scala:55) at scalaz.$bslash$div.fold(Either.scala:58) at monocle.PPrism$$anonfun$modify$1.apply(Prism.scala:55) at monocle.PPrism$$anonfun$modify$1$$anonfun$apply$4.apply(Prism.scala:55) at scalaz.$bslash$div.fold(Either.scala:58) at monocle.PPrism$$anonfun$modify$1.apply(Prism.scala:55) at monocle.PLens$$anon$7$$anonfun$modify$1.apply(Lens.scala:239) at monocle.PPrism$$anonfun$modify$1$$anonfun$apply$4.apply(Prism.scala:55) at scalaz.$bslash$div.fold(Either.scala:58) at monocle.PPrism$$anonfun$modify$1.apply(Prism.scala:55) at monocle.PPrism$$anonfun$modify$1$$anonfun$apply$4.apply(Prism.scala:55) at scalaz.$bslash$div.fold(Either.scala:58) at monocle.PPrism$$anonfun$modify$1.apply(Prism.scala:55) at monocle.PLens$$anon$7$$anonfun$modify$1.apply(Lens.scala:239) at monocle.PPrism$$anonfun$modify$1$$anonfun$apply$4.apply(Prism.scala:55) at scalaz.$bslash$div.fold(Either.scala:58) at monocle.PPrism$$anonfun$modify$1.apply(Prism.scala:55) at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52) at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52) at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52) at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:52)

    Users with the same issue

    Adarro
    17 times, last one,
    rp
    3 times, last one,
    poroszd
    1 times, last one,
    Mark
    2 times, last one,
    jokester
    1 times, last one,
    13 more bugmates