4 Replies Latest reply on Sep 17, 2012 11:09 AM by zhihai

    EvaluationExample2 execution failed

    Ava Huxley Newbie

      After setting up the demo and executing ant start.demo, the followings in console with error were showed when I had imported the jbpm-5.3.0.Final-examples.zip into Eclipse and executed org.jbpm.examples.evaluation.EvaluationExample2:

       

      Krisv executing task Performance Evaluation(1: Please perform a self-evalutation.)

      John executing task Performance Evaluation(2: You need to evaluate krisv.)

      Mary delegating task Performance Evaluation(3: You need to evaluate krisv.) to krisv

      Administrator delegating task back to mary

      Mary executing task Performance Evaluation(3: You need to evaluate krisv.)

      Exception in thread "Thread-3" java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:127)

          at java.lang.Thread.run(Unknown Source)

      Caused by: HornetQException[errorCode=102 message=Consumer is closed]

          at org.hornetq.core.client.impl.ClientConsumerImpl.checkClosed(ClientConsumerImpl.java:911)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:184)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:401)

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:118)

          ... 1 more

      Exception in thread "Thread-2" java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:127)

          at java.lang.Thread.run(Unknown Source)

      Caused by: HornetQException[errorCode=102 message=Consumer is closed]

          at org.hornetq.core.client.impl.ClientConsumerImpl.checkClosed(ClientConsumerImpl.java:911)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:184)

          at org.hornetq.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:401)

          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:118)

          ... 1 more

       

      Could you run it smootly? Please help me... Thanks!

        • 1. Re: EvaluationExample2 execution failed
          Maciej Swiderski Master

          check your server log as it looks like task server is not responding any more. Most likely an exception was thrown when processing previous request and task server thread just died.

           

          HTH

          • 2. Re: EvaluationExample2 execution failed
            enqi liu Newbie

            I ran into the same question.I check my server.log,but I find no exception,please help me ,thank you!

            • 3. Re: EvaluationExample2 execution failed
              enqi liu Newbie

              when I debug,I input "krisv" and push the "refresh" button, I will see the following informaiton:

               

              org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.evaluation:1 - Self Evaluation:2] -- Could not connect task client: on ip: 127.0.0.1 - port: 5445
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130)
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
              at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
              at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
              at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
              at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)
              at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303)
              at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168)
              at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138)
              at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082)
              at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)
              at com.sample.ProcessTest.main(ProcessTest.java:32)
              Caused by: java.lang.IllegalArgumentException: Could not connect task client: on ip: 127.0.0.1 - port: 5445
              at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:119)
              at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:143)
              at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
              at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
              ... 13 more

              • 4. Re: EvaluationExample2 execution failed
                zhihai Newbie

                Exactly same error here. Do you mind sharing how you fixed it?