You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Akolkar (JIRA)" <ji...@apache.org> on 2009/01/09 20:43:59 UTC
[jira] Updated: (SCXML-104) AbstractStateMachine log error
[ https://issues.apache.org/jira/browse/SCXML-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rahul Akolkar updated SCXML-104:
--------------------------------
Fix Version/s: 1.0
0.10
Updating the fix versions.
> AbstractStateMachine log error
> ------------------------------
>
> Key: SCXML-104
> URL: https://issues.apache.org/jira/browse/SCXML-104
> Project: Commons SCXML
> Issue Type: Bug
> Affects Versions: 0.9
> Environment: commons-scxml 0.9
> Reporter: Jorge Vila Forcén
> Priority: Minor
> Fix For: 0.10, 1.0
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> Using the constructor of AbstractStateMachine
> public AbstractStateMachine(final SCXML stateMachine)
> Invokes the following constructor:
> public AbstractStateMachine(final SCXML stateMachine,
> final Context rootCtx, final Evaluator evaluator) {
> initialize(stateMachine, rootCtx, evaluator);
> }
> And the initialize method.
> private void initialize(final SCXML stateMachine,
> final Context rootCtx, final Evaluator evaluator) {
> engine = new SCXMLExecutor(evaluator, new SimpleDispatcher(),
> new SimpleErrorReporter());
> engine.setStateMachine(stateMachine);
> engine.setSuperStep(true);
> engine.setRootContext(rootCtx);
> engine.addListener(stateMachine, new EntryListener());
> try {
> engine.go();
> } catch (ModelException me) {
> logError(me);
> }
> }
> Any exception raised in the "engine.go()" initial processing is captured and logged, but the log is not initialized properly.
> First sentence in "initialise()" method should be:
> log = LogFactory.getLog(this.getClass());
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.