JBPM - Hibernate QuerySyntaxException

时间:2013-08-27 07:23:30

标签: hibernate jbpm

在eclipse ide中尝试example JBPM时收到波纹管错误跟踪。

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)

1 个答案:

答案 0 :(得分:0)

这似乎是: (1)您正在使用的hibernate方言(在persistence.xml中定义)与您正在使用的数据库之间不匹配,您正在使用哪个数据库 (2)查询(在.orm文件中定义)和您正在使用的jBPM版本之间不匹配(可能在类路径中有较旧/不同版本的.orm文件)? (3)对您正在使用的特定数据库的此查询存在问题,如果是这样,您是否可以打开JIRA问题并附加尽可能多的信息?

克里斯