org.apache.openjpa.persistence.ArgumentException: "Encountered "cfg" at character 83, but expected: [",", ".", "GROUP", "HAVING", "INNER", "JOIN", "LEFT", "ORDER", "WHERE", <EOF>]." while parsing JPQL "SELECT DISTINCT cf FROM CouponFunction cf LEFT JOIN FETCH cf.couponFunctionGroups cfg WHERE cf.id in :aIdList". See nested stack trace for original parse error.

  1. 0

    I get org.apache.openjpa.persistence.ArgumentException while running a junit Test

    Stack Overflow | 4 months ago | vamshi krishna
    org.apache.openjpa.persistence.ArgumentException: "Encountered "cfg" at character 83, but expected: [",", ".", "GROUP", "HAVING", "INNER", "JOIN", "LEFT", "ORDER", "WHERE", <EOF>]." while parsing JPQL "SELECT DISTINCT cf FROM CouponFunction cf LEFT JOIN FETCH cf.couponFunctionGroups cfg WHERE cf.id in :aIdList". See nested stack trace for original parse error.
  2. 0

    OpenJPA Exception "The type(*) has not been enhanced

    Stack Overflow | 2 years ago | user1712638
    org.apache.openjpa.persistence.ArgumentException: The type "class model.Session" has not been enhanced.
  3. 0

    openjpa

    solveseek.com | 1 year ago
    org.apache.openjpa.persistence.ArgumentException: The type "class model.Session" has not been enhanced.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPA/MySQL - Whats wrong with this JPQL query?

    Stack Overflow | 3 years ago | Wlad
    org.apache.openjpa.persistence.ArgumentException: "Encountered "SIZE" at character 31, but expected: ["AVG", "COUNT", "KEY", "MAX", "MIN", "SUM", "VALUE", &lt;IDENTIFIER&gt;]." while parsing JPQL "SELECT p FROM Post p ORDER BY SIZE(p.comments) DESC". See nested stack trace for original parse error.
  6. 0

    query with OneToMany - openJPA vs EclipseLink

    Stack Overflow | 2 years ago
    org.apache.openjpa.persistence.ArgumentException: Query projections cannot include array, collection, or map fields. Invalid query: "SELECT m.valMessages FROM ThreePhaseMotorInput m WHERE m.id = :id"

    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. org.apache.openjpa.persistence.ArgumentException

      "Encountered "cfg" at character 83, but expected: [",", ".", "GROUP", "HAVING", "INNER", "JOIN", "LEFT", "ORDER", "WHERE", <EOF>]." while parsing JPQL "SELECT DISTINCT cf FROM CouponFunction cf LEFT JOIN FETCH cf.couponFunctionGroups cfg WHERE cf.id in :aIdList". See nested stack trace for original parse error.

      at org.apache.openjpa.kernel.jpql.JPQLParser.parse()
    2. OpenJPA Aggregate Jar
      EntityManagerImpl.createNamedQuery
      1. org.apache.openjpa.kernel.jpql.JPQLParser.parse(JPQLParser.java:51)
      2. org.apache.openjpa.kernel.ExpressionStoreQuery.newCompilation(ExpressionStoreQuery.java:154)
      3. org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:672)
      4. org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:654)
      5. org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:620)
      6. org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:682)
      7. org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:589)
      8. org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:1037)
      8 frames
    3. com.ibm.ws
      EntityManagerImpl.createNamedQuery
      1. com.ibm.ws.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:74)
      2. com.ibm.ws.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:34)
      2 frames
    4. OpenJPA Aggregate Jar
      EntityManagerImpl.createNamedQuery
      1. org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:1016)
      1 frame
    5. colruyt.couponservicesmwejb.service
      CouponFunctionDlService.findByPkIncludingCouponFunctionGroups
      1. colruyt.couponservicesmwejb.service.dl.CouponFunctionDlService.findByPkIncludingCouponFunctionGroups(CouponFunctionDlService.java:41)
      1 frame
    6. colruyt.couponservicemwejb.service
      CouponFunctionDlServiceTest.findByPkIncludingCouponFunctionGroups
      1. colruyt.couponservicemwejb.service.dl.CouponFunctionDlServiceTest.findByPkIncludingCouponFunctionGroups(CouponFunctionDlServiceTest.java:98)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      4. java.lang.reflect.Method.invoke(Method.java:619)
      4 frames
    8. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14 frames
    9. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    10. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames