java.util.NoSuchElementException: key not found: Map(...)

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

Samebug tips

,

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

Solutions on the web

via GitHub by newhoggy
, 1 year ago
key not found: Map(...)
via GitHub by newhoggy
, 1 year ago
key not found: Map(...)
via GitHub by zeph
, 1 year ago
key not found: partition
via GitHub by laurayuwen
, 1 year ago
key not found: MetaVariable
via Stack Overflow by FelixHJ
, 1 year ago
key not found: blergh
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 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)

Users with the same issue

4 times, 3 weeks ago
Once, 3 weeks ago
2 times, 1 month ago
17 times, 6 months ago
3 times, 6 months ago
14 more bugmates

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