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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

hibernate.org | 3 months ago
  1. 0

    Hibernate Community • View topic - Exception in sort query

    hibernate.org | 3 months ago
    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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2. 0

    exception in nativeQuery of mongodb using with hibernateogm

    Stack Overflow | 8 months ago | javed mohammed
    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) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3. 0

    EJB3.0:JPA :java.lang.IllegalArgumentException | Oracle Community

    oracle.com | 1 year ago
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager: Exception Description: Syntax error parsing the query [from BookBank book ], line 1, column 0: unexpected token [from]. Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1133#203064517

    GitHub | 8 months ago | DidiDimp
    java.lang.IllegalArgumentException: given transformation function 'REGEX(.*?<INDEX>1</INDEX>\n\t*<VALUE>(.*?)</VALUE>.*)]' does not follow the expected pattern '<function>(<pattern>)'
  6. 0

    Eclipse Community Forums: Ecore Tools » [TEXO] getting started with texo.web.example

    eclipse.org | 1 year ago
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager: Exception Description: Syntax error parsing the query [select * from Writer 1], line 1, column 7: unexpected token [*]. Internal Exception: NoViableAltException(93@[330:16: ( DISTINCT )?])

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    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()
    2. org.hibernate.ogm
      MongoDBDialect.parseNativeQuery
      1. org.hibernate.ogm.datastore.mongodb.MongoDBDialect.parseNativeQuery(MongoDBDialect.java:863)
      2. org.hibernate.ogm.datastore.mongodb.MongoDBDialect.parseNativeQuery(MongoDBDialect.java:143)
      2 frames
    3. Hibernate Object Grid Mapper
      NativeNoSqlQueryInterpreter.createQueryPlan
      1. org.hibernate.ogm.dialect.impl.ForwardingGridDialect.parseNativeQuery(ForwardingGridDialect.java:200)
      2. org.hibernate.ogm.query.impl.NativeNoSqlQueryInterpreter.getCustomQuery(NativeNoSqlQueryInterpreter.java:50)
      3. org.hibernate.ogm.query.impl.NativeNoSqlQueryInterpreter.createQueryPlan(NativeNoSqlQueryInterpreter.java:45)
      3 frames
    4. Hibernate
      QueryPlanCache.getNativeSQLQueryPlan
      1. org.hibernate.engine.query.spi.QueryPlanCache.getNativeSQLQueryPlan(QueryPlanCache.java:210)
      1 frame
    5. Hibernate Object Grid Mapper
      NoSQLQueryImpl.list
      1. org.hibernate.ogm.hibernatecore.impl.OgmSessionImpl.list(OgmSessionImpl.java:301)
      2. org.hibernate.ogm.query.impl.NoSQLQueryImpl.list(NoSQLQueryImpl.java:130)
      2 frames
    6. org.hibernate.jpa
      QueryImpl.getResultList
      1. org.hibernate.jpa.internal.QueryImpl.list(QueryImpl.java:593)
      2. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:470)
      2 frames