[jboss-osgi-issues] [JBoss JIRA] Updated: (JBOSGI-452) ConcurrentModificationException in BundleManager.getBundles()

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu May 19 04:59:00 EDT 2011


     [ https://issues.jboss.org/browse/JBOSGI-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated JBOSGI-452:
----------------------------------

          Summary: ConcurrentModificationException in BundleManager.getBundles()  (was: ConcurrentModificationException in org.jboss.osgi.framework.internal.BundleManager.getBundles())
    Fix Version/s:  JBossOSGi 1.0.0


> ConcurrentModificationException in BundleManager.getBundles()
> -------------------------------------------------------------
>
>                 Key: JBOSGI-452
>                 URL: https://issues.jboss.org/browse/JBOSGI-452
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Stuart Douglas
>            Assignee: Thomas Diesler
>             Fix For:  JBossOSGi 1.0.0
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list