Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1084

Subsystem : Failure on restart after framework crash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Subsystem
    • None

    Description

      Situation : I set up OSGi framework, installed Aries subsystem (and all required bundles), installed a single trivial feature subsystem containing a single bundle resource. All worked as expected in normal operation with install/start/stop/uninstall operations working as described in section 134.14 of the OSGi Enterprise Release 5 spec. Starting and stopping the framework started and stopped installed subsystem's bundle as expected.

      Problem : When the framework is not closed down gracefully (say JVM crash) the subsystem's bundle does not restart. The proximate cause of this appears to be that...

      • The state for each subsystem is persisted in the DEPLOYMENT.MF file, under the header "AriesSubsystem-State", stored in the Aries subsystem bundle's data storage area.
      • The state is changed between RESOLVED and ACTIVE (and back again) as the bundle is started and stopped in a gracefully way.
      • A JVM crash leaves the "AriesSubsystem-State" value in the file as ACTIVE for both root and installed subsystem.
      • Upon restart the my feature subsystem's resource bundle is no longer started as Aries (presumably) assumes it is already ACTIVE.

      I'm fairly sure that the "AriesSubsystem-State" header is causing the problem because hand editing it in both root and installed DEPLOYMENT.MF files back to 'RESOLVED' prior to starting the framework solves the problem.

      Attachments

        Issue Links

          Activity

            People

              jwross@us.ibm.com John Ross
              stephen.flynn@jftechnology.com Stephen Flynn
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: