在eclipse ide中嘗試使用JBPM的example時出現下圖錯誤跟蹤。JBPM - 休眠QuerySyntaxException
java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select new org.jbpm.task.query.TaskSummary(t.id, t.taskData.processInstanceId, name.text, subject.text, description.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime, t.taskData.processId, t.taskData.processSessionId) from org.jbpm.task.Task t left join t.taskData.createdBy left join t.taskData.actualOwner left join t.subjects as subject left join t.descriptions as description left join t.names as name, org.jbpm.task.OrganizationalEntity potentialOwners where t.archived = 0 and (potentialOwners.id = :userId or potentialOwners.id in()) and potentialOwners in elements (t.peopleAssignments.potentialOwners) and (name.language = :language or t.names.size = 0) and (subject.language = :language or t.subjects.size = 0) and (description.language = :language or t.descriptions.size = 0) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:601) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76) at org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwner(TaskServiceSession.java:730) at org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwner(TaskServiceSession.java:711) at org.jbpm.task.service.local.LocalTaskService.getTasksAssignedAsPotentialOwner(LocalTaskService.java:193) at org.jbpm.Hello_WorldJUnitTest.testConstraint2(Hello_WorldJUnitTest.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)