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 }

Stack Overflow | Prasanna | 6 months ago
tip
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

    invalid sort specified for tailable cursor

    Stack Overflow | 6 months ago | Prasanna
    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 }
  2. 0

    invalid-sort-specified-for-tailable-cursor

    Google Groups | 6 months ago | Prasanna Ganesh
    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 }
  3. 0

    Data retrieval from mongodb java api

    Stack Overflow | 3 years ago | Jose Ramon
    com.mongodb.MongoException: interrupted at shutdown
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MongoDB : Older records of Mongo DB collection doesn't got necessary keys in them

    Stack Overflow | 4 years ago | Preethi Jain
    com.mongodb.MongoException: Unsupported projection option: $exists

  1. sriharshakiran 2 times, last 11 months ago
5 unregistered visitors
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

    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()
  2. MongoDB Java Driver
    DBCursor.hasNext
    1. com.mongodb.MongoException.parse(MongoException.java:82)
    2. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:314)
    3. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:295)
    4. com.mongodb.DBCursor._check(DBCursor.java:368)
    5. com.mongodb.DBCursor._hasNext(DBCursor.java:459)
    6. com.mongodb.DBCursor.hasNext(DBCursor.java:484)
    6 frames
  3. com.trainings.core
    Test.lambda$0
    1. com.trainings.core.Test.lambda$0(Test.java:32)
    1 frame
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame