2013-08-27 80 views
0

在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)

回答

0

這似乎是兩種: 數據庫(1)您使用的 您正在使用(如在persistence.xml中定義)休眠方言和你正在使用的數據庫之間的不匹配(2)查詢(如.orm文件中定義的)與您正在使用的jBPM版本(可能在您的類路徑中包含更舊/不同版本的.orm文件)之間不匹配? (3)在您使用的特定數據庫上存在此查詢的問題,如果可以的話,您是否可以打開JIRA問題並附上儘可能多的信息?

克里斯