bguerout/jongo

Unable to handle ISODate and getting parsing exception

pradeepkusingh opened this issue · 1 comments

Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse query: { "lastModifiedDate": { $gt: ISODate("2018-01-24T23:00:18.062+0000") }, "devices.0.deviceSource": "AUTO_DISCOVERY", "devices.0.activationStatus": "SUCCESS" }
at org.jongo.query.BsonQueryFactory.createQuery(BsonQueryFactory.java:162)
at org.jongo.Jongo.createQuery(Jongo.java:56)
at com.test.MongoExample.main(MongoExample.java:57)
Caused by: com.mongodb.util.JSONParseException:
{ "lastModifiedDate": { $gt: ISODate("2018-01-24T23:00:18.062+0000") }, "devices.0.deviceSource": "AUTO_DISCOVERY", "devices.0.activationStatus": "SUCCESS" }
^
at com.mongodb.util.JSONParser.parse(JSON.java:231)
at com.mongodb.util.JSONParser.parseObject(JSON.java:264)
at com.mongodb.util.JSONParser.parse(JSON.java:228)
at com.mongodb.util.JSONParser.parseObject(JSON.java:264)
at com.mongodb.util.JSONParser.parse(JSON.java:228)
at com.mongodb.util.JSONParser.parse(JSON.java:156)
at com.mongodb.util.JSON.parse(JSON.java:98)
at org.jongo.query.BsonQueryFactory.createQuery(BsonQueryFactory.java:123)
... 2 more

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.