com.mongodb.MongoException: $or array must contain objects

JIRA | Hubert Zhang | 6 years ago
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error using $elemMatch

    GitHub | 3 years ago | ubiquitousthey
    com.mongodb.MongoException: invalid parameter: expected an object ($elemMatch)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Problem reading from primary using Java driver and TaggedReadPreference

    Google Groups | 5 years ago | Bryan Hunt
    com.mongodb.MongoException: Could not find any valid secondaries with the supplied tags ('{ "locale" : "sc"}'
  4. 0

    Does the Java Driver support $slice operator?

    Google Groups | 6 years ago | Stuart King
    com.mongodb.MongoException: invalid operator: $slice

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.MongoException

      $or array must contain objects

      at com.mongodb.MongoException.parse()
    2. MongoDB Java Driver
      1. com.mongodb.MongoException.parse(
      2. com.mongodb.DBApiLayer$MyCollection.__find(
      3. com.mongodb.DBCollection.findOne(
      4. com.mongodb.DBCollection.findOne(
      4 frames
    3. casbah-core
      1. com.mongodb.casbah.MongoCollection.findOne(MongoCollection.scala:683)
      1 frame