java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting CLOSE, found '.' near line 1, column 114 [select generatedAlias0.message from com.blablabla.pojos.Foo as generatedAlias0 where (overlap(cast(:param0 as com.blablabla.hibernate.CustomArrayType),cast(:param1 as com.blablabla.hibernate.CustomArrayType)) = true)]

Stack Overflow | fdelsert | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hibernate Criteria casting Literal to CustomType

    Stack Overflow | 8 months ago | fdelsert
    java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting CLOSE, found '.' near line 1, column 114 [select generatedAlias0.message from com.blablabla.pojos.Foo as generatedAlias0 where (overlap(cast(:param0 as com.blablabla.hibernate.CustomArrayType),cast(:param1 as com.blablabla.hibernate.CustomArrayType)) = true)]
  2. 0

    NullPointerException because of the same hibernate constructor

    Stack Overflow | 3 years ago | mrquad
    java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [com.Application.domain.TestData] [select distinct new com.Application.domain.TestData(generatedAlias0.CustomerNr) from com.Application.domain.TestData as generatedAlias0 where ( upper(generatedAlias0.CustomerNr) like :param0 ) and ( upper(generatedAlias0.City) like :param1 ) and ( upper(generatedAlias0.Country) like :param2 ) and ( upper(generatedAlias0.UseType) like :param3 ) and ( upper(generatedAlias0.ProjStat) like :param4 ) order by generatedAlias0.CustomerNr asc]
  3. 0

    How to properly convert this SQL case statement to JPA Criteria Query

    Stack Overflow | 1 year ago | Tall'jeezzy
    java.lang.IllegalArgumentException: Parameter value [%SUCC%] did not match expected type [java.lang.Character]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    multiply QuerySyntaxException after Update from 2.9.0 to 3.2.1

    GitHub | 4 years ago | bennixview
    java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1, column 47 [select case when baa.einheit = ?1 then baa.id * ?2 when baa.einheit = ?3 then baa.id * ?4 else baa.id end from de...............Baa baa]
  6. 0

    Filter does not search by numeric fields

    GitHub | 4 years ago | ikostenko
    java.lang.IllegalArgumentException: Parameter value [%49.00%] did not match expected type [java.math.BigDecimal]

    1 unregistered visitors
    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

      org.hibernate.hql.internal.ast.QuerySyntaxException: expecting CLOSE, found '.' near line 1, column 114 [select generatedAlias0.message from com.blablabla.pojos.Foo as generatedAlias0 where (overlap(cast(:param0 as com.blablabla.hibernate.CustomArrayType),cast(:param1 as com.blablabla.hibernate.CustomArrayType)) = true)]

      at org.hibernate.ejb.AbstractEntityManagerImpl.convert()
    2. Hibernate EJB
      AbstractEntityManagerImpl.createQuery
      1. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1374)
      2. org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310)
      3. org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:470)
      4. org.hibernate.ejb.criteria.CriteriaQueryCompiler.compile(CriteriaQueryCompiler.java:221)
      5. org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:587)
      5 frames
    3. com.blablabla.hibernate
      ArrayContainsAnyExpressionIT.should_build_hql
      1. com.blablabla.hibernate.criteria.expression.ArrayContainsAnyExpressionIT.should_build_hql(ArrayContainsAnyExpressionIT.java:65)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. JUnit
      FrameworkMethod.invokeExplosively
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      3 frames
    6. A Hibernate O/RM Module
      ExtendedFrameworkMethod.invokeExplosively
      1. org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63)
      1 frame
    7. JUnit
      FailOnTimeout$StatementThread.run
      1. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      2. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      3. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      4. org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)
      4 frames