java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'totentialOwners.id' [SELECT DISTINCT l FROM org.jbpm.process.audit.VariableInstanceLog l , org.jbpm.services.task.impl.model.TaskImpl t WHERE (( totentialOwners.id IN (:A1) AND potentialOwners in elements ( t.peopleAssignments.potentialOwners ) ) AND t.taskData.processInstanceId = l.processInstanceId) ORDER by l.processInstanceId ASC] at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1374) at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1310) at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:294) at org.jbpm.process.audit.JPAAuditLogService.doQuery(JPAAuditLogService.java:555) at org.jbpm.process.audit.JPAAuditLogService.doQuery(JPAAuditLogService.java:531) at org.jbpm.process.audit.JPAAuditLogService.queryVariableInstanceLogs(JPAAuditLogService.java:430) at org.kie.remote.services.rest.query.InternalTaskQueryHelper.doQueryAndCreateResultObjects(InternalTaskQueryHelper.java:122) at org.kie.remote.services.rest.query.InternalTaskQueryHelper.doQueryAndCreateResultObjects(InternalTaskQueryHelper.java:1) at org.kie.remote.services.rest.query.AbstractInternalQueryHelper.queryTaskOrProcInstAndAssociatedVariables(AbstractInternalQueryHelper.java:140) at org.kie.remote.services.rest.query.InternalTaskQueryHelper.queryTaskOrProcInstAndAssociatedVariables(InternalTaskQueryHelper.java:1) at org.kie.remote.services.rest.query.QueryResourceTest.queryTaskRestCallTest(QueryResourceTest.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'totentialOwners.id' [SELECT DISTINCT l FROM org.jbpm.process.audit.VariableInstanceLog l , org.jbpm.services.task.impl.model.TaskImpl t WHERE (( totentialOwners.id IN (:A1) AND potentialOwners in elements ( t.peopleAssignments.potentialOwners ) ) AND t.taskData.processInstanceId = l.processInstanceId) ORDER by l.processInstanceId ASC] at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54) at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47) at org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException(ErrorCounter.java:79) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:257) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:138) at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:104) at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:79) at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:168) at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:222) at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:200) at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1703) at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:291) ... 33 more