Uploaded image for project: 'Commons SCXML'
  1. Commons SCXML
  2. SCXML-104

AbstractStateMachine log error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.10, 2.0
    • None
    • commons-scxml 0.9

    Description

      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());

      Attachments

        Activity

          People

            Unassigned Unassigned
            enderr Jorge Vila Forcén
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified