java.lang.IllegalArgumentException: Query select myEntity from MyEntity myEntity where myEntity.id = ?1, query hint eclipselink.cursor.scrollable.result-set-type is not valid for this type of query.

GitHub | Adrodoc55 | 2 months ago
  1. 0

    Using iterate for a query with a single result throws an Exception

    GitHub | 2 months ago | Adrodoc55
    java.lang.IllegalArgumentException: Query select myEntity from MyEntity myEntity where myEntity.id = ?1, query hint eclipselink.cursor.scrollable.result-set-type is not valid for this type of query.
  2. 0

    Custom data types using EclipseLink and Querydsl

    Stack Overflow | 3 years ago
    java.lang.IllegalArgumentException: You have attempted to set a value of type class java.lang.String for parameter 1 with expected type of class xxx.Email from query string select person from Person person where person.email like ?1 escape '!' order by person.email asc.
  3. 0

    Queries and custom data types

    GitHub | 3 years ago | sinuhepop
    java.lang.IllegalArgumentException: You have attempted to set a value of type class java.lang.String for parameter 1 with expected type of class xxx.Email from query string select person from Person person where person.email like ?1 escape '!' order by person.email asc.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Strange error!

    Oracle Community | 9 years ago | 604984
    java.lang.IllegalArgumentException: You have attempted to set a value of type class mypackage.model.GeoPos$GeoType for parameter type with expected type of class mypackage.model.GeoPos$GeoType from query string SELECT pos FROM GeoPos pos WHERE pos.type = :type .
  6. 0

    NoSQL : Query on Enum lead to can't serialize class

    Eclipse Bugzilla | 4 years ago | jmcollin92
    java.lang.IllegalArgumentException: You have attempted to set a value of type class java.lang.String for parameter type with expected type of class clouderial.saas.services.account.vos.EnumAccountType from query string Select e from Account e where e.email=:email and e.type=:type.

    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

      Query select myEntity from MyEntity myEntity where myEntity.id = ?1, query hint eclipselink.cursor.scrollable.result-set-type is not valid for this type of query.

      at org.eclipse.persistence.internal.jpa.QueryHintsHandler$ResultSetTypeHint.applyToDatabaseQuery()
    2. EclipseLink (non-OSGi)
      EJBQueryImpl.setHint
      1. org.eclipse.persistence.internal.jpa.QueryHintsHandler$ResultSetTypeHint.applyToDatabaseQuery(QueryHintsHandler.java:914)
      2. org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:369)
      3. org.eclipse.persistence.internal.jpa.QueryHintsHandler$Hint.apply(QueryHintsHandler.java:347)
      4. org.eclipse.persistence.internal.jpa.QueryHintsHandler.apply(QueryHintsHandler.java:172)
      5. org.eclipse.persistence.internal.jpa.QueryImpl.setHintInternal(QueryImpl.java:767)
      6. org.eclipse.persistence.internal.jpa.EJBQueryImpl.setHint(EJBQueryImpl.java:282)
      6 frames
    3. com.querydsl.jpa
      AbstractJPAQuery.iterate
      1. com.querydsl.jpa.EclipseLinkHandler.iterate(EclipseLinkHandler.java:61)
      2. com.querydsl.jpa.impl.AbstractJPAQuery.iterate(AbstractJPAQuery.java:191)
      2 frames