java.lang.IllegalArgumentException: Unsupported native query: Invalid input '....', expected WhiteSpace or EOI (line 1, pos 189): db.UserFactualContent.find( {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public' }]},{ 'DESCRIPTION': 1,'NAME': 1,'TOKEN':1}).sort({'clicks':-1}).limit(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 hibernate.org by Unknown author, 1 year ago
Unsupported native query: Invalid input '....', expected WhiteSpace or EOI (line 1, pos 189): db.UserFactualContent.find( {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public
via Stack Overflow by javed mohammed
, 1 year ago
Unsupported native query: Invalid input '....', expected WhiteSpace or EOI (line 1, pos 189): db.UserFactualContent.find( {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public' }]},{ 'DESCRIPTION': 1,'NAME': 1,'TOKEN':1}).sort({'clicks':-1}).limit(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
java.lang.IllegalArgumentException: Unsupported native query: Invalid input '....', expected WhiteSpace or EOI (line 1, pos 189): db.UserFactualContent.find( {'$or': [ {'NAME':{'$regex':'(?i)Bangalore'}}, {'DESCRIPTION':{'$regex':'(?i)Bangalore'}}],'$and':[{'FLAG':'public' }]},{ 'DESCRIPTION': 1,'NAME': 1,'TOKEN':1}).sort({'clicks':-1}).limit(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at org.hibernate.ogm.datastore.mongodb.MongoDBDialect.parseNativeQuery(MongoDBDialect.java:863)
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

You are the first who have seen this exception.

Write tip

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