Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3703

Race condition in gogo runtime activator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • gogo.runtime-0.10.0
    • gogo.shell-0.12.0
    • Gogo Runtime
    • None
    • Embedded felix 4.0.3

    Description

      Starting gogo.command (0.12.0) before gogo.runtime(0.10.0) produces CommandNotFoundException: Command not found: gosh.
      This is because runtime's Activator first registers CommandProcessor before creating commandTracker.
      Creating CommandProcessor triggers event on .command which will start adding commands, but since commandTracker is not present, those commands will be ignored.

      Attachments

        1. osgi-embedded.zip
          4 kB
          Tomas Pan
        2. my.patch
          0.8 kB
          Tomas Pan

        Activity

          People

            db82407 Derek Baum
            tomaspan Tomas Pan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: