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 Stack Overflow by Dikshit Luthra
, 1 year ago
Due to limitations of the com.mongodb.BasicDBObject, you can't add a second '$or' expression specified as '$or : [ { “field1” : “value1”}, {“field1” : “value2”}]'. Criteria already contains '$or : [ { “field2” : “value3”} , { “field2” : “value4”}]'.
org.springframework.data.mongodb.InvalidMongoDbApiUsageException: Due to limitations of the com.mongodb.BasicDBObject, you can't add a second '$or' expression specified as '$or : [ { “field1” : “value1”}, {“field1” : “value2”}]'. Criteria already contains '$or : [ { “field2” : “value3”} , { “field2” : “value4”}]'.	at org.springframework.data.mongodb.core.query.Criteria.setValue(Criteria.java:640)	at org.springframework.data.mongodb.core.query.Criteria.getCriteriaObject(Criteria.java:573)	at org.springframework.data.mongodb.core.query.Criteria.createCriteriaList(Criteria.java:630)	at org.springframework.data.mongodb.core.query.Criteria.andOperator(Criteria.java:539)