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

DependencyManager stop can trigger IndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: dependencymanager-3.0.0
    • Fix Version/s: None
    • Component/s: Dependency Manager
    • Labels:
      None

      Description

      DependencyManager.clear(), pre FELIX-3042 known as DependencyActivatorBase.cleanup(), iterates over unprotected list determining size only at the start.

      build	22-Mar-2012 10:03:08	java.lang.IndexOutOfBoundsException: Index: 66, Size: 66
      build	22-Mar-2012 10:03:08		at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      build	22-Mar-2012 10:03:08		at java.util.ArrayList.get(ArrayList.java:322)
      build	22-Mar-2012 10:03:08		at java.util.Collections$SynchronizedList.get(Collections.java:1816)
      build	22-Mar-2012 10:03:08		at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
      build	22-Mar-2012 10:03:08		at org.apache.felix.dm.DependencyActivatorBase.cleanup(DependencyActivatorBase.java:301)
      build	22-Mar-2012 10:03:08		at org.apache.felix.dm.DependencyActivatorBase.stop(DependencyActivatorBase.java:90)
      build	22-Mar-2012 10:03:08		at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:663)
      build	22-Mar-2012 10:03:08		at org.apache.felix.framework.Felix.stopBundle(Felix.java:2361)
      build	22-Mar-2012 10:03:08		at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:980)
      build	22-Mar-2012 10:03:08		at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:967)
      

        Attachments

        1. FELIX-3402-sync.patch
          2 kB
          Bram de Kruijff

          Activity

            People

            • Assignee:
              marrs Marcel Offermans
              Reporter:
              bramk Bram de Kruijff
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: