2 Replies Latest reply on Mar 30, 2006 9:31 AM by david trattnig

    TaskInstance.setPooledActors() --> org.hibernate.PropertyAcc

    david trattnig Newbie

      In my Node-Enter-Action I've got following code:

      //create a new task-instance
       TaskInstance taskInstance = context.getTaskMgmtInstance().createTaskInstance();
       taskInstance.setActorId(taskBean.getActorId());
       HashSet<String> pooledActors = new HashSet<String>();
       pooledActors.add(taskBean.getPooledGroupId());
       taskInstance.setPooledActors(pooledActors);
       context.setTaskInstance(taskInstance);
       taskInstance.start();
      


      When running the code it ends with following exception:
      ERROR [.db.JbpmSession: 105] org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.jbpm.taskmgmt.exe.PooledActor.id

      When I remove "taskInstance.setPooledActors(pooledActors);" it works. What's the Problem with Hibernate?

      Regards,
      david