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 JIRA by sandip, 1 year ago
Can't canonicalize query: BadValue unknown top level operator: $query
via JIRA by sandip, 1 year ago
Can't canonicalize query: BadValue unknown top level operator: $query
via Google Groups by Stephan, 2 years ago
assertion src/mongo/db/query/planner_analysis.cpp:114
via Stack Overflow by Unknown author, 2 years ago
Can't canonicalize query: BadValue $or needs an array
via GitHub by syllogismos
, 2 years ago
version changed during initial query ( ns : DbName.Collection, received : 460|0||5501e23a01907f6d2913ea91, wanted : 461|0||5501e23a01907f6d2913ea91, send ) ( ns : DbName.Collection, received : 460|0||5501e23a01907f6d2913ea91, wanted : 461|0||5501e23a01907f6d2913ea91, send )
com.mongodb.MongoException: Can't canonicalize query: BadValue unknown top level operator: $query	at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:214)	at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:198)	at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:176)	at com.mongodb.QueryResultIterator.(QueryResultIterator.java:64)	at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:86)	at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:66)	at com.mongodb.DBCursor._check(DBCursor.java:458)	at com.mongodb.DBCursor._hasNext(DBCursor.java:546)	at com.mongodb.DBCursor.hasNext(DBCursor.java:571)	at aap.main(aap.java:57)