commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SCXML-104) AbstractStateMachine log error
Date Sun, 11 Jan 2009 07:11:59 GMT

    [ https://issues.apache.org/jira/browse/SCXML-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662734#action_12662734
] 

Rahul Akolkar commented on SCXML-104:
-------------------------------------

Commit access to the SVN repository is not open to all, so your commit won't go through yet.

To your question -- yup, the SimpleDispatcher doesn't handle delays, though the SimpleScheduler
does. If you'd like to suggest an enhancement, please attach a patch here. See:

  http://commons.apache.org/patches.html


> 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.


Mime
View raw message