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