java.util.NoSuchElementException: key not found: location

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.

  • Explanations for JOINs
    via GitHub by okennedy
    ,
  • a bug in bagOfWords
    via GitHub by breezer2020
    ,
    • java.util.NoSuchElementException: key not found: location at scala.collection.MapLike$class.default(scratch_8.scala:224) at scala.collection.AbstractMap.default(scratch_8.scala:54) at scala.collection.MapLike$class.apply(scratch_8.scala:137) at scala.collection.AbstractMap.apply(scratch_8.scala:54)

    Users with the same issue

    Handemelindo
    Handemelindo35 times, last one,
    Adarro
    Adarro17 times, last one,
    rp
    rp3 times, last one,
    poroszd
    poroszd1 times, last one,
    Unknown visitor1 times, last one,
    13 more bugmates