2 Replies Latest reply on Jan 11, 2015 8:00 PM by Kris Verlaenen

    java.lang.RuntimeException: Task operation request timed out

    Marc Marc Newbie

      Hey guys,

       

      AS.7.1.1.Final

      JBPM 5.4.0.Final

      Hibernate with mysql driver

      Spring 4.1.3.Release

       

      When my process hits the human task, it throws such error:

       

      17:20:06,816 ERROR [org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler] (Thread-156) Thu Jan 08 17:20:06 NZDT 2015: Error when creating task on task server for work item id 75. Error reported by task server: Task operation request timed out: java.lang.RuntimeException: Task operation request timed out

        at org.jbpm.task.service.SyncTaskServiceWrapper.addTask(SyncTaskServiceWrapper.java:118) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:182) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]

        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:216) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:196) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:247) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:309) [jbpm-flow-5.4.0.Final.jar:5.4.0.Final]

       

      However it puts it in the jbpm console.

       

      BLZT9ja.png

      At the moment, I am allowing the server to be created automatically. As shown in picture below.

       

      S1WqEPT.png

      (http://i.imgur.com/S1WqEPT.png)

       

      Here is the humantaskHandler info

       

      humanTaskHandler = new HornetQHTWorkItemHandler(client,ksession);

        humanTaskHandler.setIpAddress("127.0.0.1");

        humanTaskHandler.setPort(5153);

        humanTaskHandler.setOwningSessionOnly(true);

        humanTaskHandler.connect();

      ksession.getWorkItemManager().registerWorkItemHandler("Human Task",humanTaskHandler);



      I have also tried to create the server by myself, however it seemed as if the server was never picking up task.

       

      Any help would be good.