[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-457) ConcurrentModificationException in UserBundleState.hasActiveWires

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Jun 23 05:32:23 EDT 2011


    [ https://issues.jboss.org/browse/JBOSGI-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610619#comment-12610619 ] 

Thomas Diesler commented on JBOSGI-457:
---------------------------------------

This requires an update of the resolver. All collections need to be reviewed for their concurrency policy.

{code}
        for (XCapability cap : resModule.getCapabilities()) {
            Set<XRequirement> wiredReqs = cap.getWiredRequirements();
            for (XRequirement req : wiredReqs) {
                Bundle bundle = req.getModule().getAttachment(Bundle.class);
                AbstractBundleState importer = AbstractBundleState.assertBundleState(bundle);
                if (importer.getState() != Bundle.UNINSTALLED)
                    return true;
            }
        }
{code}

> ConcurrentModificationException in UserBundleState.hasActiveWires
> -----------------------------------------------------------------
>
>                 Key: JBOSGI-457
>                 URL: https://issues.jboss.org/browse/JBOSGI-457
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Stuart Douglas
>            Assignee: Thomas Diesler
>             Fix For:  JBossOSGi 1.0.0
>
>
> 10:36:30,347 WARN  [org.jboss.msc.service.fail] MSC00004: Failure during stop of service jbosgi.bundle.9."org.apache.aries.jmx"."0.3.0".INSTALLED: java.util.ConcurrentModificationException
>         at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373) [:1.6.0_22]
>         at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384) [:1.6.0_22]
>         at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010) [:1.6.0_22]
>         at org.jboss.osgi.framework.internal.UserBundleState.hasActiveWires(UserBundleState.java:237)
>         at org.jboss.osgi.framework.internal.BundleManager.uninstallBundle(BundleManager.java:462)
>         at org.jboss.osgi.framework.internal.UserBundleInstalledService.stop(UserBundleInstalledService.java:88)
>         at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1779)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
>         at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]

--
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