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

Potential Concurrent Modification Exception when a bundle is stopped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ipojo-core-1.8.2
    • ipojo-core-1.8.4
    • iPOJO
    • None

    Description

      There is a potential CME when a bundle declaring instances is stopped.

      The exception we see in the logs is: -
      31.07.2012 14:54:10.281 ERROR [FelixDispatchQueue] org.apache.felix.ipojo FrameworkEvent ERROR (java.util.ConcurrentModificationException) java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
      at java.util.HashMap$KeyIterator.next(HashMap.java:828)
      at org.apache.felix.ipojo.InstanceCreator.removeInstancesFromBundle(InstanceCreator.java:117)
      at org.apache.felix.ipojo.Extender.closeManagementFor(Extender.java:147)
      at org.apache.felix.ipojo.Extender.bundleChanged(Extender.java:129)

      The instance deletion is not protected against concurrent access.

      Attachments

        Activity

          People

            clement.escoffier Clement Escoffier
            clement.escoffier Clement Escoffier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: