1 Reply Latest reply on Apr 9, 2006 5:57 AM by Koen Aers

    Named query not known: TaskMgmtSession.findPooledTaskInstanc

    sean liu Newbie

      I encountered the following exception when i used bpmContext.getGroupTaskList api. It seems that couldn't find hibernate.queries.hbm.xml. jbpm-3.1.jar is in the lib directory in jboss.


      Caused by: org.jbpm.JbpmException: couldn't get pooled task instances list for actors '[AdsOperator, BusinessUser, WFUsers]'
      at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:122)
      at org.jbpm.JbpmContext.getGroupTaskList(JbpmContext.java:196)
      at com.wxxr.workflow.jbpm.JbpmEngine.getWorklistOfUser(JbpmEngine.java:468)
      at com.wxxr.workflow.jbpm.JbpmEngine.getMyWorkList(JbpmEngine.java:444)
      ... 120 more
      Caused by: org.hibernate.MappingException: Named query not known: TaskMgmtSession.findPooledTaskInstancesByActorIds
      at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:34)
      at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:116)
      ... 123 more