Is it possible that your tests start before the task service has been
set up completely (notice that it could take a few seconds to set up the
users etc.). Try adding some more delay before starting the tests.
Kris
Quoting Anderson vasconcelos <anderson.vass(a)gmail.com>:
Hi All
I Make a test with Jmeter (
http://jakarta.apache.org/jmeter/) to
stress my
flow. I Created a Thread Group, to execute 1000 simultaneous users
for start
the flow.
I had the follow trouble:
The First users that try to started the process, received this
execption:
Caused by: java.lang.NullPointerException
at
org.drools.task.service.MinaTaskClient.addTask(MinaTaskClient.java:43)
at
org.drools.process.workitem.wsht.WSHumanTaskHandler.executeWorkItem(WSHumanTaskHandler.java:161)
at
org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:55)
at
org.drools.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:95)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135)
at
org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at
org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112)
at
org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16)
at
org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185)
at
org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:239)
at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1708)
at
org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:288)
at
br.com.dextra.droolsflow.tasks.TaskServiceBean.startProcessFlow(TaskServiceBean.java:68)
After some users, the process starts normal. The problem occur only
for the
first users. I Believe that problem is from MinaTaskServer tha was
not
started correctly. (Just start, after some calls).
I used to start MinaTaskServer the follow code (This code is inside a
Jboss
- MBean):
*
*
*TaskService taskService = new TaskService(*
* this.entityManageSessionFactory,
SystemEventListenerFactory
*
* .getSystemEventListener());*
* server = new MinaTaskServer(taskService);*
* Thread thread = new Thread(server);*
* thread.start();*
* Thread.sleep(5000);*
could anybody help me?
Thanks
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm