commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Schumann | Sysvision GmbH <lorenz.schum...@sysvision.de>
Subject [scxml] Too many state navigation causes StackOverflowException
Date Fri, 24 Sep 2010 15:34:22 GMT
Hi,

i am using Commons SCXML for the first time and am overall new to the 
Statechart paradigm.
But i am working on a software where a statemachine is needed and the 
first choice fell on commons.
So much for the introduction.

Now what we discovered is that when you navigate from state to state via 
triggering events there is a recursion that makes the method-stack 
higher and higher and will at some point throw an StackOverflowError.
This is what the important part of a stacktrace looks like:

     at 
org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.initiateInvokes(SCXMLSemanticsImpl.java:847)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:142)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvent(SCXMLExecutor.java:160)
     at MyInvoker.invoke(MyInvoker.java:23)
     at 
org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.initiateInvokes(SCXMLSemanticsImpl.java:847)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:142)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvent(SCXMLExecutor.java:160)
     at MyInvoker.invoke(MyInvoker.java:23)
     at 
org.apache.commons.scxml.semantics.SCXMLSemanticsImpl.initiateInvokes(SCXMLSemanticsImpl.java:847)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvents(SCXMLExecutor.java:142)
     at 
org.apache.commons.scxml.SCXMLExecutor.triggerEvent(SCXMLExecutor.java:160)
     at MyInvoker.invoke(MyInvoker.java:23)

Are we using it as it is meant to be? Is there a way that the execution 
of states is not beeing stacked?

Help is much appreciated.

Lorenz


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message