com.mongodb.util.JSONParseException: db.UserFactualContent.aggregate([{ '$match': {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public'}] } },{ '$unwind' : '$clicks' },{ '$group' : {'_id' : '$_id' ,'clicks' : {$push:'$clicks'} ,'token' : { '$push': '$TOKEN' } } }]) ^

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 hibernate.org by Unknown author, 1 year ago
db.UserFactualContent.aggregate([{ '$match': {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public'}] } },{ '$unwind' : '$clicks' },{ '$group' : {'_id' : '$_id' ,'clicks' : {$push:'$clicks'} ,'token' : { '$push': '$TOKEN' } } }]) ^
com.mongodb.util.JSONParseException: db.UserFactualContent.aggregate([{ '$match': {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public'}] } },{ '$unwind' : '$clicks' },{ '$group' : {'_id' : '$_id' ,'clicks' : {$push:'$clicks'} ,'token' : { '$push': '$TOKEN' } } }]) ^
at com.mongodb.util.JSONParser.parse(JSON.java:230)
at com.mongodb.util.JSONParser.parse(JSON.java:155)
at com.mongodb.util.JSON.parse(JSON.java:92)
at com.mongodb.util.JSON.parse(JSON.java:73)
at org.hibernate.ogm.datastore.mongodb.query.parsing.nativequery.impl.MongoDBQueryDescriptorBuilder.build(MongoDBQueryDescriptorBuilder.java:71)
at org.hibernate.ogm.datastore.mongodb.MongoDBDialect.parseNativeQuery(MongoDBDialect.java:866)
at org.hibernate.ogm.datastore.mongodb.MongoDBDialect.parseNativeQuery(MongoDBDialect.java:143)
at org.hibernate.ogm.dialect.impl.ForwardingGridDialect.parseNativeQuery(ForwardingGridDialect.java:200)
at org.hibernate.ogm.query.impl.NativeNoSqlQueryInterpreter.getCustomQuery(NativeNoSqlQueryInterpreter.java:50)
at org.hibernate.ogm.hibernatecore.impl.OgmSessionImpl.list(OgmSessionImpl.java:301)
at org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:593)
at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:470)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 7 months ago

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