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-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org