1 Reply Latest reply on Mar 12, 2013 3:49 AM by Thomas Diesler

    ConcurrentModificationException during capabilities startup with blueprints

    Daniel Straub Newbie

      During the start of capabilities with blueprint containers occasionally occurs a ConcurrentModificationException :

       

      17:01:26,327 ERROR [org.apache.aries.blueprint.container.BlueprintContainerImpl] (Blueprint Extender: 2) Unable to start blueprint container for bundle org.apache.servicemix.jbi.deployer: java.util.ConcurrentModificationException

                at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) [classes.jar:1.6.0_37]

                at java.util.HashMap$ValueIterator.next(HashMap.java:822) [classes.jar:1.6.0_37]

                at org.jboss.osgi.framework.internal.ServiceManagerImpl.getServiceReferencesInternal(ServiceManagerImpl.java:205) [jbosgi-framework-core-2.1.0.CR6.jar:2.1.0.CR6]

                at org.jboss.osgi.framework.internal.ServiceManagerImpl.getServiceReferences(ServiceManagerImpl.java:189) [jbosgi-framework-core-2.1.0.CR6.jar:2.1.0.CR6]

                at org.jboss.osgi.framework.internal.AbstractBundleContext.getServiceReferences(AbstractBundleContext.java:344) [jbosgi-framework-core-2.1.0.CR6.jar:2.1.0.CR6]

                at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.start(AbstractServiceReferenceRecipe.java:124)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.trackServiceReferences(BlueprintContainerImpl.java:559)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:530)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:314)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [classes.jar:1.6.0_37]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [classes.jar:1.6.0_37]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [classes.jar:1.6.0_37]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [classes.jar:1.6.0_37]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]

       

      or

       

      03:51:27,750 INFO  [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011002: Bundle started: org.apache.camel.camel-blueprint:2.8.5

      03:51:27,751 INFO  [org.jboss.osgi.framework] (MSC service thread 1-2) JBOSGI011000: OSGi Framework started

      03:51:28,018 ERROR [org.apache.aries.blueprint.container.BlueprintContainerImpl] (Blueprint Extender: 1) Unable to start blueprint container for bundle org.apache.karaf.shell.ssh: java.util.ConcurrentModificationException

                at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793) [classes.jar:1.6.0_37]

                at java.util.HashMap$ValueIterator.next(HashMap.java:822) [classes.jar:1.6.0_37]

                at org.jboss.osgi.framework.internal.ServiceManagerImpl.getServiceReferencesInternal(ServiceManagerImpl.java:205) [jbosgi-framework-core-2.1.0.CR4.jar:2.1.0.CR4]

                at org.jboss.osgi.framework.internal.ServiceManagerImpl.getServiceReferences(ServiceManagerImpl.java:189) [jbosgi-framework-core-2.1.0.CR4.jar:2.1.0.CR4]

                at org.jboss.osgi.framework.internal.AbstractBundleContext.getServiceReferences(AbstractBundleContext.java:338) [jbosgi-framework-core-2.1.0.CR4.jar:2.1.0.CR4]

                at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.start(AbstractServiceReferenceRecipe.java:124)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.trackServiceReferences(BlueprintContainerImpl.java:559)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:283)

                at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [classes.jar:1.6.0_37]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [classes.jar:1.6.0_37]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [classes.jar:1.6.0_37]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) [classes.jar:1.6.0_37]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_37]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_37]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_37]

       

       

       

      (using JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes")