AnsweredAssumed Answered

StackOverflowError when process looping to much

Question asked by billbaroud on Apr 3, 2012
Latest reply on Apr 3, 2012 by trademak
Hi guys,

I have the following process, that is looping and get messages from an 'incoming queue', delete the messages found and wait 5 seconds if no message is found.


Problem: if my queue is filled with more than 30 messages, the workflow will loop 30 times and I get the following error:

Exception in thread "pool-1-thread-2" java.lang.StackOverflowError
        at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.ensureVariableInstancesInitialized(
        at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.hasVariableLocal(
        at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.hasVariable(
        at org.activiti.engine.impl.el.VariableScopeElResolver.getValue(
        at org.activiti.engine.impl.javax.el.CompositeELResolver.getValue(
        at org.activiti.engine.impl.juel.AstIdentifier.eval(
        at org.activiti.engine.impl.juel.AstBinary$SimpleOperator.eval(
        at org.activiti.engine.impl.juel.AstBinary.eval(
        at org.activiti.engine.impl.juel.AstEval.eval(
        at org.activiti.engine.impl.juel.AstNode.getValue(

Musst I set a wait timer between each and every loop ?

Thanks :)