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 | 5 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

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

    GitHub | 5 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.

    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