Uploaded image for project: 'JBoss OSGi'
  1. JBoss OSGi
  2. JBOSGI-452

ConcurrentModificationException in BundleManager.getBundles()

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: JBossOSGi 1.0.0
    • Component/s: None
    • Labels:
      None

      Description

      I observed a ConcurrentModificationException while running the integration tests in AS7. Unfortunately I lost the stack trace, but the cause is that iterators of maps that have been wrapped via Collections.synchronizedMap() are not thread safe, so if a bundle is added while getBundles is iterating a ConcurrentModificationException may result.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thomas.diesler Thomas Diesler
                  Reporter:
                  swd847 Stuart Douglas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: