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 }

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

Solutions on the web

via Google Groups by Prasanna Ganesh, 1 year 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
, 1 year 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 hivmr.com by Unknown author, 1 year ago
Can't canonicalize query: BadValue unknown top level operator: $ne
via JIRA by Randolph Tan, 1 year ago
unauthorized db:offerStore ns:offerStore.offer lock type:0 client:192.x.y.z
via JIRA by Randolph Tan, 1 year ago
unauthorized db:offerStore ns:offerStore.offer lock type:0 client:192.x.y.z
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates

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