com.mongodb.MongoException

Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 }

Solutions on the web130

  • via Google Groups by Prasanna Ganesh, 10 months ago
    Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 }
  • via Stack Overflow by Prasanna
    , 10 months ago
    Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 }
  • Unable to execute query: error processing query: ns=boldelectric-prod.boldelectric.data.clientStatus limit=1 skip=0 Tree: _id == ObjectId('577212b6e4b0a3ba05834d28') Sort: {} Proj: { _id: 1, instanceVersion: 1 } planner returned error: bad hint
  • Stack trace

    • com.mongodb.MongoException: Unable to execute query: error processing query: ns=local.oplog.rs limit=0 skip=0 Tree: $and Sort: { $natural: -1 } Proj: {} invalid sort specified for tailable cursor: { $natural: -1 } at com.mongodb.MongoException.parse(MongoException.java:82) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:314) at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295) at com.mongodb.DBCursor._check(DBCursor.java:368) at com.mongodb.DBCursor._hasNext(DBCursor.java:459) at com.mongodb.DBCursor.hasNext(DBCursor.java:484) at com.trainings.core.Test.lambda$0(Test.java:32) at java.lang.Thread.run(Unknown Source)

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1 more bugmates