You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Hendy Irawan (JIRA)" <ji...@apache.org> on 2012/08/15 02:17:37 UTC
[jira] [Created] (ARIES-904) Blueprint throws
java.util.ConcurrentModificationException when starting bundle
Hendy Irawan created ARIES-904:
----------------------------------
Summary: Blueprint throws java.util.ConcurrentModificationException when starting bundle
Key: ARIES-904
URL: https://issues.apache.org/jira/browse/ARIES-904
Project: Aries
Issue Type: Bug
Components: Blueprint
Affects Versions: blueprint-core-0.3.2
Reporter: Hendy Irawan
I'm not sure what combination exactly causes this, but current state of my project (which is unfortunately already quite complex) can always trigger this bug.
Probably related to #FELIX-3242.
{code}
2012-08-15 07:09:45,081 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 364 | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle id.co.bippo.commerce.core
java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)[:1.7.0_03]
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)[:1.7.0_03]
at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_03]
at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:87)[9:org.apache.aries.blueprint:0.3.2]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.2]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:320)[9:org.apache.aries.blueprint:0.3.2]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_03]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_03]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_03]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_03]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_03]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (ARIES-904) Blueprint throws
java.util.ConcurrentModificationException when starting bundle
Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hendy Irawan updated ARIES-904:
-------------------------------
Environment:
Originally Karaf 2.2.8 and blueprint 0.3.2.
But still occur with Blueprint 1.0.1 in Karaf 2.3.0:
Karaf
Karaf version 2.3.0
Karaf home /home/ceefour/git/bippo-commerce5/karaf
Karaf base /home/ceefour/git/bippo-commerce5/karaf
OSGi Framework org.apache.felix.framework - 4.0.3
JVM
Java Virtual Machine OpenJDK 64-Bit Server VM version 23.2-b09
Version 1.7.0_07
Vendor Oracle Corporation
Uptime 2 hours 3 minutes
Total compile time 38.300 seconds
Threads
Live threads 106
Daemon threads 91
Peak 138
Total started 443
Memory
Current heap size 73,629 kbytes
Maximum heap size 466,048 kbytes
Committed heap size 309,184 kbytes
Pending objects 0
Garbage collector Name = 'PS Scavenge', Collections = 834, Time = 5.028 seconds
Garbage collector Name = 'PS MarkSweep', Collections = 5, Time = 1.238 seconds
Classes
Current classes loaded 12,992
Total classes loaded 13,353
Total classes unloaded 361
Operating system
Name Linux version 3.2.0-32-generic
Architecture amd64
Processors 8
Affects Version/s: blueprint-core-1.0.1
> Blueprint throws java.util.ConcurrentModificationException when starting bundle
> -------------------------------------------------------------------------------
>
> Key: ARIES-904
> URL: https://issues.apache.org/jira/browse/ARIES-904
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: blueprint-core-0.3.2, blueprint-core-1.0.1
> Environment: Originally Karaf 2.2.8 and blueprint 0.3.2.
> But still occur with Blueprint 1.0.1 in Karaf 2.3.0:
> Karaf
> Karaf version 2.3.0
> Karaf home /home/ceefour/git/bippo-commerce5/karaf
> Karaf base /home/ceefour/git/bippo-commerce5/karaf
> OSGi Framework org.apache.felix.framework - 4.0.3
> JVM
> Java Virtual Machine OpenJDK 64-Bit Server VM version 23.2-b09
> Version 1.7.0_07
> Vendor Oracle Corporation
> Uptime 2 hours 3 minutes
> Total compile time 38.300 seconds
> Threads
> Live threads 106
> Daemon threads 91
> Peak 138
> Total started 443
> Memory
> Current heap size 73,629 kbytes
> Maximum heap size 466,048 kbytes
> Committed heap size 309,184 kbytes
> Pending objects 0
> Garbage collector Name = 'PS Scavenge', Collections = 834, Time = 5.028 seconds
> Garbage collector Name = 'PS MarkSweep', Collections = 5, Time = 1.238 seconds
> Classes
> Current classes loaded 12,992
> Total classes loaded 13,353
> Total classes unloaded 361
> Operating system
> Name Linux version 3.2.0-32-generic
> Architecture amd64
> Processors 8
> Reporter: Hendy Irawan
>
> I'm not sure what combination exactly causes this, but current state of my project (which is unfortunately already quite complex) can always trigger this bug.
> Probably related to #FELIX-3242.
> {code}
> 2012-08-15 07:09:45,081 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 364 | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle id.co.bippo.commerce.core
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)[:1.7.0_03]
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)[:1.7.0_03]
> at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_03]
> at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:87)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:320)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_03]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_03]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (ARIES-904) Blueprint throws
java.util.ConcurrentModificationException when starting bundle
Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434689#comment-13434689 ]
Hendy Irawan edited comment on ARIES-904 at 8/15/12 11:20 AM:
--------------------------------------------------------------
Probably a useful snippet of the Blueprint XML.
I'm using JPA via EntityManagerFactory (cannot use jpa:context due to #ARIES-796 ), with CM PropertyPlaceholder as follows :
{code}
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0
http://aries.apache.org/xmlns/jpa/v1.0.0 http://aries.apache.org/xmlns/jpa/v1.0.0
http://aries.apache.org/xmlns/transactions/v1.0.0 http://aries.apache.org/xmlns/transactions/v1.0.0">
<cm:property-placeholder persistent-id="id.co.bippo.commerce" update-strategy="reload">
<cm:default-properties>
<cm:property name="auth.ldap.uri" value="ldap://localhost:10389"/>
<cm:property name="auth.ldap.bind.dn" value="uid=admin,ou=system"/>
<cm:property name="auth.ldap.bind.password" value="secret"/>
<cm:property name="auth.ldap.basedn" value="ou=users,dc=dev,dc=berbatik,dc=com"/>
<cm:property name="image.dav.uri" value="http://berbatik_dev:bippo@dav.berbatik.annafi.dev/"/>
<cm:property name="image.public.uri" value="http://dav.berbatik.annafi.dev/"/>
<cm:property name="image.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev_image"/>
<cm:property name="booking.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev"/>
<cm:property name="magento.apiuser" value="sysadmin"/>
<cm:property name="magento.apikey" value="admin123"/>
<cm:property name="magento.baseurl" value="http://www.berbatik.annafi.dev/"/>
</cm:default-properties>
</cm:property-placeholder>
<reference id="magentoEmf" interface="javax.persistence.EntityManagerFactory"
filter="(osgi.unit.name=magento)"/>
<bean id="magentoEm" factory-ref="magentoEmf" factory-method="createEntityManager" destroy-method="close"/>
<bean id="productDao" class="id.co.bippo.magento.jpa.dao.ProductDao">
<!-- jpa:context unitname="magento" property="em" # see https://issues.apache.org/jira/browse/ARIES-796 /-->
<property name="em" ref="magentoEm"/>
<tx:transaction method="*" value="Required" />
</bean>
<service ref="productDao" auto-export="class-hierarchy">
<service-properties>
<entry key="clientId" value="berbatik"/>
<entry key="tenantEnv" value="dev"/>
<entry key="tenantId" value="berbatik"/>
<entry key="namespace" value=""/>
</service-properties>
</service>
</blueprint>
{code}
Commenting this line:
{code}
<property name="em" ref="magentoEm"/>
{code}
makes the ConcurrentModificationException go away. (of course the bean will not work now... but I hope this is a clue)
was (Author: ceefour):
Probably a useful snippet of the Blueprint XML.
I'm using JPA via EntityManagerFactory (cannot use jpa:context due to #ARIES-796 ), with CM PropertyPlaceholder as follows :
{code}
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0
http://aries.apache.org/xmlns/jpa/v1.0.0 http://aries.apache.org/xmlns/jpa/v1.0.0
http://aries.apache.org/xmlns/transactions/v1.0.0 http://aries.apache.org/xmlns/transactions/v1.0.0">
<cm:property-placeholder persistent-id="id.co.bippo.commerce" update-strategy="reload">
<cm:default-properties>
<cm:property name="auth.ldap.uri" value="ldap://localhost:10389"/>
<cm:property name="auth.ldap.bind.dn" value="uid=admin,ou=system"/>
<cm:property name="auth.ldap.bind.password" value="secret"/>
<cm:property name="auth.ldap.basedn" value="ou=users,dc=dev,dc=berbatik,dc=com"/>
<cm:property name="image.dav.uri" value="http://berbatik_dev:bippo@dav.berbatik.annafi.dev/"/>
<cm:property name="image.public.uri" value="http://dav.berbatik.annafi.dev/"/>
<cm:property name="image.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev_image"/>
<cm:property name="booking.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev"/>
<cm:property name="magento.apiuser" value="sysadmin"/>
<cm:property name="magento.apikey" value="admin123"/>
<cm:property name="magento.baseurl" value="http://www.berbatik.annafi.dev/"/>
</cm:default-properties>
</cm:property-placeholder>
<reference id="magentoEmf" interface="javax.persistence.EntityManagerFactory"
filter="(osgi.unit.name=magento)"/>
<bean id="magentoEm" factory-ref="magentoEmf" factory-method="createEntityManager" destroy-method="close"/>
<bean id="productDao" class="id.co.bippo.magento.jpa.dao.ProductDao">
<!-- jpa:context unitname="magento" property="em" # see https://issues.apache.org/jira/browse/ARIES-796 /-->
<property name="em" ref="magentoEm"/>
<tx:transaction method="*" value="Required" />
</bean>
<service ref="productDao" auto-export="class-hierarchy">
<service-properties>
<entry key="clientId" value="berbatik"/>
<entry key="tenantEnv" value="dev"/>
<entry key="tenantId" value="berbatik"/>
<entry key="namespace" value=""/>
</service-properties>
</service>
</blueprint>
{code}
Commenting this line:
{code}
<property name="em" ref="magentoEm"/>
{code}
makes the ConcurrentModificationException go away.
> Blueprint throws java.util.ConcurrentModificationException when starting bundle
> -------------------------------------------------------------------------------
>
> Key: ARIES-904
> URL: https://issues.apache.org/jira/browse/ARIES-904
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: blueprint-core-0.3.2
> Reporter: Hendy Irawan
>
> I'm not sure what combination exactly causes this, but current state of my project (which is unfortunately already quite complex) can always trigger this bug.
> Probably related to #FELIX-3242.
> {code}
> 2012-08-15 07:09:45,081 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 364 | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle id.co.bippo.commerce.core
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)[:1.7.0_03]
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)[:1.7.0_03]
> at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_03]
> at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:87)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:320)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_03]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_03]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (ARIES-904) Blueprint throws
java.util.ConcurrentModificationException when starting bundle
Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492276#comment-13492276 ]
Hendy Irawan commented on ARIES-904:
------------------------------------
Still happens on Blueprint 1.0.1 on Karaf 2.3.0:
{code}
2012-11-07 18:11:31,609 | INFO | ce5/karaf/deploy | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.2.6 | Started bundle: jardir:/home/ceefour/git/bippo-commerce5/karaf/deploy/com.berbatik.product
2012-11-07 18:11:35,927 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 375 | 7 - org.apache.aries.blueprint.core - 1.0.1 | Unable to start blueprint container for bundle berbatik_security.xml
java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:394)[:1.7.0_07]
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)[:1.7.0_07]
at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_07]
at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:89)[7:org.apache.aries.blueprint.core:1.0.1]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:506)[7:org.apache.aries.blueprint.core:1.0.1]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:338)[7:org.apache.aries.blueprint.core:1.0.1]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:252)[7:org.apache.aries.blueprint.core:1.0.1]
at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[7:org.apache.aries.blueprint.core:1.0.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_07]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_07]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_07]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_07]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_07]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_07]
{code}
The Blueprint for this bundle is:
{code}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0">
<cm:property-placeholder persistent-id="berbatik" update-strategy="reload">
<cm:default-properties>
<!-- Tenant Info -->
<cm:property name="clientId" value="berbatik" />
<cm:property name="tenantId" value="berbatik" />
<cm:property name="tenantEnv" value="dev" />
<!-- Auth -->
<cm:property name="mallLdapBaseDn" value="dc=dev,dc=berbatik,dc=com" />
</cm:default-properties>
</cm:property-placeholder>
<bean id="securityPackage" class="org.soluvas.security.impl.SecurityPackageImpl" factory-method="init" />
<bean id="aggregatingSecurityCatalogSupplier" class="org.soluvas.commons.AggregatingSupplier">
<argument>
<bean class="org.soluvas.security.impl.SecurityFactoryImpl" factory-method="init" />
</argument>
<argument>
<bean factory-ref="securityPackage" factory-method="getSecurityCatalog" />
</argument>
<argument>
<list />
</argument>
</bean>
<service ref="aggregatingSecurityCatalogSupplier" auto-export="interfaces">
<service-properties>
<entry key="clientId" value="${clientId}" />
<entry key="tenantEnv" value="${tenantEnv}" />
<entry key="tenantId" value="${tenantId}" />
<entry key="suppliedClass" value="org.soluvas.security.SecurityCatalog" />
<entry key="layer" value="application" />
</service-properties>
</service>
<bean id="securityCatalogSupplierTracker" class="org.soluvas.commons.SupplierTracker">
<argument ref="blueprintBundleContext" />
<argument ref="aggregatingSecurityCatalogSupplier" />
</bean>
<bean class="org.osgi.util.tracker.ServiceTracker" init-method="open" destroy-method="close">
<argument ref="blueprintBundleContext" />
<argument>
<bean class="org.osgi.framework.FrameworkUtil" factory-method="createFilter">
<argument value="(&(objectClass=com.google.common.base.Supplier)(suppliedClass=org.soluvas.security.SecurityCatalog)(tenantId=berbatik)(layer=module))" />
</bean>
</argument>
<argument ref="securityCatalogSupplierTracker" />
</bean>
<bean id="securityCatalogXmiTracker" class="org.soluvas.commons.XmiTracker">
<argument ref="securityPackage" />
<argument value="org.soluvas.security.SecurityCatalog" />
<argument value="${tenantId}" />
<argument value="${tenantEnv}" />
</bean>
<bean class="org.osgi.util.tracker.BundleTracker" init-method="open" destroy-method="close">
<argument ref="blueprintBundleContext" />
<argument value="32" />
<argument ref="securityCatalogXmiTracker" />
</bean>
<reference id="ldapPool" interface="org.apache.commons.pool.ObjectPool"
filter="(&(tenantId=berbatik)(namespace=ldap))"/>
<reference id="ldapConfigSupplier" interface="com.google.common.base.Supplier"
filter="(&(tenantId=berbatik)(suppliedClass=org.apache.directory.ldap.client.api.LdapConnectionConfig))" />
<bean id="rolePersonAssoc" class="org.soluvas.ldap.LdapRolePersonAssoc">
<argument ref="ldapPool" />
<argument value="${mallLdapBaseDn}" />
</bean>
<service ref="rolePersonAssoc" auto-export="interfaces">
<service-properties>
<entry key="clientId" value="${clientId}" />
<entry key="tenantId" value="${tenantId}" />
<entry key="tenantEnv" value="${tenantEnv}" />
<entry key="namespace" value="role-person" />
</service-properties>
</service>
<bean id="securityRepo" class="org.soluvas.security.ldap.LdapSecurityRepository">
<argument ref="ldapPool" />
<argument value="${mallLdapBaseDn}" />
<argument>
<bean factory-ref="ldapConfigSupplier" factory-method="get" />
</argument>
<argument ref="rolePersonAssoc" />
</bean>
<service ref="securityRepo" auto-export="interfaces">
<service-properties>
<entry key="clientId" value="${clientId}" />
<entry key="tenantId" value="${tenantId}" />
<entry key="tenantEnv" value="${tenantEnv}" />
</service-properties>
</service>
<bean id="shiroRealm" class="org.soluvas.web.login.SoluvasRealm" init-method="init">
<argument ref="aggregatingSecurityCatalogSupplier" />
<argument ref="securityRepo" />
</bean>
<bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager"
destroy-method="destroy">
<property name="realm" ref="shiroRealm" />
</bean>
<bean id="shiroFilterFactory" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
<property name="securityManager" ref="securityManager" />
</bean>
<bean id="securityFilter" class="org.soluvas.web.login.DelegatingFilterFactory"
init-method="register" activation="eager">
<argument ref="blueprintBundleContext" />
<argument value="${tenantId}_${tenantEnv}" /> <!-- Wicket application name -->
<argument value="2" /> <!-- Priority -->
<property name="filter">
<bean factory-ref="shiroFilterFactory" factory-method="getObject" />
</property>
</bean>
</blueprint>
{code}
Though the app is rather complex. Also, I don't use JPA anywhere in this app.
{code}
karaf@root> list -s -t 0
START LEVEL 100 , List Threshold: 0
ID State Blueprint Spring Level Symbolic name
[ 0] [Active ] [ ] [ ] [ 0] org.apache.felix.framework (4.0.3)
[ 1] [Active ] [ ] [ ] [ 5] org.ops4j.pax.url.mvn (1.3.5)
[ 2] [Active ] [ ] [ ] [ 5] org.ops4j.pax.url.wrap (1.3.5)
[ 3] [Active ] [ ] [ ] [ 8] org.ops4j.pax.logging.pax-logging-service (1.7.0)
[ 4] [Active ] [ ] [ ] [ 8] org.ops4j.pax.logging.pax-logging-api (1.7.0)
[ 5] [Active ] [ ] [ ] [ 10] org.apache.felix.configadmin (1.4.0)
[ 6] [Active ] [ ] [ ] [ 11] org.apache.felix.fileinstall (3.2.6)
[ 7] [Active ] [Created ] [ ] [ 20] org.apache.aries.blueprint.core (1.0.1)
[ 8] [Active ] [ ] [ ] [ 20] org.apache.aries.util (1.0.0)
[ 9] [Active ] [ ] [ ] [ 20] org.apache.aries.proxy.api (1.0.0)
[ 10] [Active ] [ ] [ ] [ 20] org.objectweb.asm.all (4.0)
[ 11] [Active ] [ ] [ ] [ 20] org.apache.aries.blueprint.api (1.0.0)
[ 12] [Active ] [ ] [ ] [ 20] org.apache.aries.proxy.impl (1.0.0)
[ 13] [Active ] [Created ] [ ] [ 20] org.apache.aries.blueprint.cm (1.0.0)
[ 14] [Active ] [Created ] [ ] [ 25] org.apache.karaf.shell.console (2.3.0)
[ 15] [Active ] [Created ] [ ] [ 28] org.apache.karaf.deployer.blueprint (2.3.0)
[ 16] [Active ] [Created ] [ ] [ 28] org.apache.karaf.deployer.spring (2.3.0)
[ 17] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.ssh (2.3.0)
[ 18] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.server (2.3.0)
[ 19] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.commands (2.3.0)
[ 20] [Active ] [Created ] [ ] [ 30] org.apache.karaf.features.core (2.3.0)
[ 21] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.log (2.3.0)
[ 22] [Active ] [Created ] [ ] [ 30] org.apache.karaf.features.command (2.3.0)
[ 23] [Active ] [Created ] [ ] [ 30] org.apache.karaf.diagnostic.management (2.3.0)
[ 24] [Active ] [ ] [ ] [ 30] org.apache.sshd.core (0.8.0)
[ 25] [Active ] [Created ] [ ] [ 30] org.apache.karaf.deployer.wrap (2.3.0)
[ 26] [Active ] [ ] [ ] [ 30] org.apache.mina.core (2.0.7)
[ 27] [Active ] [Created ] [ ] [ 30] org.apache.karaf.admin.command (2.3.0)
[ 28] [Active ] [Created ] [ ] [ 30] org.apache.karaf.diagnostic.command (2.3.0)
[ 29] [Active ] [ ] [ ] [ 30] org.apache.aries.jmx.core (1.0.1)
[ 30] [Active ] [ ] [ ] [ 30] org.apache.karaf.diagnostic.core (2.3.0)
[ 31] [Active ] [Created ] [ ] [ 30] org.apache.karaf.admin.management (2.3.0)
[ 32] [Active ] [ ] [ ] [ 30] org.apache.aries.jmx.api (1.0.0)
[ 33] [Active ] [Created ] [ ] [ 30] org.apache.karaf.diagnostic.common (2.3.0)
[ 34] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.dev (2.3.0)
[ 35] [Active ] [Created ] [ ] [ 30] org.apache.karaf.deployer.features (2.3.0)
[ 36] [Active ] [ ] [ ] [ 30] org.apache.aries.jmx.blueprint.api (1.0.0)
[ 37] [Active ] [Created ] [ ] [ 30] org.apache.karaf.jaas.command (2.3.0)
[ 38] [Active ] [Created ] [ ] [ 30] org.apache.karaf.jaas.modules (2.3.0)
[ 39] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.osgi (2.3.0)
[ 40] [Active ] [Created ] [ ] [ 30] org.apache.karaf.features.management (2.3.0)
[ 41] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.packages (2.3.0)
[ 42] [Active ] [ ] [ ] [ 30] org.apache.aries.jmx.blueprint.core (1.0.1)
[ 43] [Active ] [Created ] [ ] [ 30] org.apache.karaf.admin.core (2.3.0)
[ 44] [Active ] [Created ] [ ] [ 30] org.apache.karaf.deployer.kar (2.3.0)
[ 45] [Active ] [Created ] [ ] [ 30] org.apache.karaf.jaas.config (2.3.0)
[ 46] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.config (2.3.0)
[ 47] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.system (2.3.0)
[ 48] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.bundles (2.3.0)
[ 49] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.services (2.3.0)
[ 50] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.config (2.3.0)
[ 51] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.log (2.3.0)
[ 52] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.packages (2.3.0)
[ 53] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.dev (2.3.0)
[ 57] [Active ] [ ] [ ] [ 30] org.apache.servicemix.specs.activation-api-1.1 (2.1.0)
[ 58] [Active ] [ ] [ ] [ 30] org.apache.geronimo.specs.geronimo-servlet_2.5_spec (1.1.2)
[ 59] [Active ] [ ] [ ] [ 30] javax.mail (1.4.5)
[ 60] [Active ] [ ] [ ] [ 30] org.apache.geronimo.specs.geronimo-jta_1.1_spec (1.1.1)
[ 61] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.util (7.6.7.v20120910)
[ 62] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.io (7.6.7.v20120910)
[ 63] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.http (7.6.7.v20120910)
[ 64] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.client (7.6.7.v20120910)
[ 65] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.continuation (7.6.7.v20120910)
[ 66] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.jmx (7.6.7.v20120910)
[ 67] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.server (7.6.7.v20120910)
[ 68] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.security (7.6.7.v20120910)
[ 69] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.servlet (7.6.7.v20120910)
[ 70] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.servlets (7.6.7.v20120910)
[ 71] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.xml (7.6.7.v20120910)
[ 72] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.webapp (7.6.7.v20120910)
[ 73] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.jndi (7.6.7.v20120910)
[ 74] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.plus (7.6.7.v20120910)
[ 75] [Active ] [ ] [ ] [ 30] org.eclipse.jetty.websocket (7.6.7.v20120910)
[ 76] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-api (1.1.3)
[ 77] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-spi (1.1.3)
[ 78] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-runtime (1.1.3)
[ 79] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-jetty (1.1.3)
[ 80] [Active ] [ ] [ ] [ 30] org.apache.felix.metatype (1.0.4)
[ 81] [Resolved ] [ ] [ ] [ 30] org.apache.karaf.webconsole.branding (2.3.0)
Hosts: 82
[ 82] [Active ] [Created ] [ ] [ 30] org.apache.karaf.webconsole.console (2.3.0)
Fragments: 81
[ 83] [Active ] [Created ] [ ] [ 30] org.apache.karaf.webconsole.admin (2.3.0)
[ 84] [Active ] [Created ] [ ] [ 30] org.apache.karaf.webconsole.features (2.3.0)
[ 85] [Active ] [Created ] [ ] [ 30] org.apache.karaf.webconsole.gogo (2.3.0)
[ 86] [Active ] [ ] [ ] [ 30] org.apache.felix.webconsole.plugins.event (1.0.2)
[ 87] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-extender-whiteboard (1.1.3)
[ 88] [Active ] [Created ] [ ] [ 30] org.apache.karaf.shell.web (2.3.0)
[ 89] [Active ] [Created ] [ ] [ 30] org.apache.karaf.management.mbeans.web (2.3.0)
[ 90] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-jsp (1.1.3)
[ 91] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-extender-war (1.1.3)
[ 92] [Active ] [ ] [ ] [ 30] org.ops4j.pax.web.pax-web-deployer (1.1.3)
[ 93] [Active ] [ ] [ ] [ 30] org.ops4j.pax.url.war (1.3.5)
[1767] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-atinject_1.0_spec (1.0)
[1768] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-el_2.2_spec (1.0.3)
[1770] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-interceptor_3.0_spec (1.0.1)
[1771] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-jcdi_1.0_spec (1.0)
[1780] [Active ] [ ] [ ] [ 50] com.rabbitmq.client (2.8.5)
[1831] [Active ] [ ] [ ] [ 50] org.apache.httpcomponents.httpcore (4.2.1)
[1832] [Active ] [ ] [ ] [ 50] org.apache.httpcomponents.httpclient (4.2.1)
[1836] [Active ] [ ] [ ] [ 30] org.apache.geronimo.specs.geronimo-jpa_2.0_spec (1.1)
[1837] [Active ] [ ] [ ] [ 30] org.apache.aries.jpa.api (1.0.0)
[1838] [Active ] [Created ] [ ] [ 30] org.apache.aries.jpa.blueprint.aries (1.0.0)
[1839] [Active ] [ ] [ ] [ 30] org.apache.aries.jpa.container (1.0.0)
[1840] [Active ] [ ] [ ] [ 30] org.apache.aries.jpa.container.context (1.0.1)
[1847] [Active ] [ ] [ ] [ 40] org.apache.servicemix.bundles.antlr-runtime (3.4.0.2)
[1848] [Active ] [ ] [ ] [ 40] org.apache.servicemix.bundles.stringtemplate (4.0.2.1)
[1849] [Active ] [ ] [ ] [ 50] org.apache.commons.pool (1.6.0)
[1850] [Active ] [ ] [ ] [ 50] org.apache.servicemix.bundles.antlr (2.7.7.5)
[1851] [Active ] [ ] [ ] [ 50] org.apache.commons.collections (3.2.1)
[1852] [Active ] [ ] [ ] [ 50] org.apache.commons.lang (2.6)
[1853] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.client.api (1.0.0.M13)
[1854] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.asn1.api (1.0.0.M13)
[1855] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.asn1.ber (1.0.0.M13)
[1856] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.i18n (1.0.0.M13)
[1857] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.util (1.0.0.M13)
[1858] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.codec.core (1.0.0.M13)
[1859] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.net.mina (1.0.0.M13)
[1860] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.model (1.0.0.M13)
[1861] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.schema (1.0.0.M13)
[1862] [Active ] [ ] [ ] [ 50] org.apache.directory.shared.ldap.extras.aci (1.0.0.M13)
[1864] [Active ] [ ] [ ] [ 50] wrap_mvn_com.google.protobuf_protobuf-java_2.4.1_Export-Package___version_2.4.1 (0)
[1865] [Active ] [ ] [ ] [ 50] org.mvel2 (2.1.0.drools16)
[1866] [Active ] [ ] [ ] [ 50] wrap_mvn_com.sun.istack_istack-commons-runtime_2.12_Export-Package___version_2.12.0 (0)
[1867] [Active ] [ ] [ ] [ 50] org.drools.api (5.4.0.Final)
[1868] [Active ] [ ] [ ] [ 50] org.drools.internalapi (5.4.0.Final)
[1869] [Active ] [ ] [ ] [ 50] org.drools.core (5.4.0.Final)
[1870] [Active ] [ ] [ ] [ 50] org.drools.compiler (5.4.0.Final)
[1871] [Active ] [ ] [ ] [ 50] org.drools.templates (5.4.0.Final)
[1872] [Active ] [ ] [ ] [ 50] com.sun.jersey.core (1.14.0)
[1873] [Active ] [ ] [ ] [ 50] com.sun.jersey.client (1.14.0)
[1874] [Active ] [ ] [ ] [ 50] wrap_mvn_org.scala-lang_scala-library_2.9.2 (0)
[1875] [Resolved ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-kernel_1.7.2_Export-Package_org.neo4j.unsafe.batchinsert_neo4j-kernel__split__ (0)
[1876] [Resolved ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-lucene-index_1.7.2_Export-Package_org.neo4j.unsafe.batchinsert_neo4j-lucene-index__split__ (0)
[1877] [Resolved ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-graph-matching_1.7.2 (0)
[1878] [Resolved ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-cypher_1.7.2_DynamicImport-Package__ (0)
[1879] [Resolved ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-rest-graphdb_1.7_Import-Package_org.neo4j.__org.neo4j.server.plugins_resolution__optional_javax.transaction.__org.codehaus.__Require-Bundle_com.sun.jersey.core_com.sun.jersey.client (0)
[1880] [Active ] [ ] [ ] [ 50] wrap_mvn_com.tinkerpop.blueprints_blueprints-core_1.2 (0)
[1881] [Active ] [ ] [ ] [ 50] wrap_mvn_com.tinkerpop.blueprints_blueprints-neo4j-graph_1.2 (0)
[1882] [Active ] [ ] [ ] [ 50] wrap_mvn_com.tinkerpop_frames_0.7_Import-Package_com.tinkerpop.blueprints.pgm___resolution__optional (0)
[1883] [Active ] [ ] [ ] [ 50] wrap_mvn_net.coobird_thumbnailator_0.4.1 (0)
[1885] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-validation_1.0_spec (1.1)
[1886] [Active ] [ ] [ ] [ 50] wrap_mvn_org.picketlink.idm_picketlink-idm-common_1.5.0.Alpha02_Export-Package___version_1.5.0.Alpha02 (0)
[1887] [Active ] [ ] [ ] [ 50] wrap_mvn_org.picketlink.idm_picketlink-idm-api_1.5.0.Alpha02_Export-Package___version_1.5.0.Alpha02 (0)
[1889] [Active ] [ ] [ ] [ 30] org.apache.aries.jndi.api (1.0.0)
[1890] [Active ] [ ] [ ] [ 30] org.apache.aries.jndi.core (1.0.0)
[1891] [Active ] [ ] [ ] [ 30] org.apache.aries.jndi.rmi (1.0.0)
[1892] [Active ] [ ] [ ] [ 30] org.apache.aries.jndi.url (1.0.0)
[1893] [Active ] [ ] [ ] [ 30] org.apache.aries.jndi.legacy.support (1.0.0)
[1894] [Active ] [Created ] [ ] [ 30] org.apache.aries.transaction.blueprint (1.0.0)
[1895] [Active ] [ ] [ ] [ 30] org.apache.aries.transaction.manager (1.0.1)
[1896] [Active ] [ ] [ ] [ 50] org.apache.commons.dbcp (1.4)
[1897] [Active ] [ ] [ ] [ 50] org.apache.servicemix.bundles.serp (1.13.1.4)
[1986] [Active ] [ ] [ ] [ 50] jackson-core-asl (1.9.9)
[1987] [Active ] [ ] [ ] [ 50] jackson-mapper-asl (1.9.9)
[1988] [Active ] [ ] [ ] [ 50] joda-time (1.6.2)
[1989] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-ejb_3.1_spec (1.0.2)
[1990] [Active ] [ ] [ ] [ 50] org.apache.geronimo.specs.geronimo-jaxrpc_1.1_spec (2.0.0)
[1991] [Active ] [ ] [ ] [ 50] javax.cache (0.4.0)
[1992] [Active ] [ ] [ ] [ 50] wrap_mvn_com.github.spullara.mustache.java_compiler_0.8.2 (0)
[1993] [Active ] [ ] [ ] [ 50] org.mongodb.mongo-java-driver (2.9.1.RELEASE)
[1994] [Active ] [ ] [ ] [ 50] com.google.code.morphia (0.99.1.SNAPSHOT)
[1995] [Active ] [ ] [ ] [ 50] wrap_mvn_com.google.code.morphia_morphia-logging-slf4j_0.99 (0)
[1997] [Active ] [ ] [ ] [ 50] wrap_mvn_com.restfb_restfb_1.6.9 (0)
[1998] [Active ] [ ] [ ] [ 50] org.apache.commons.email (1.2)
[2000] [Active ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-iri_0.9.3 (0)
[2001] [Active ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-core_2.7.3 (0)
[2002] [Active ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-arq_2.9.3 (0)
[2003] [Active ] [ ] [ ] [ 50] wrap_mvn_net.sf.opencsv_opencsv_2.3 (0)
[2028] [Active ] [ ] [ ] [ 80] com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider (2.1.0)
[2033] [Active ] [ ] [ ] [ 30] org.apache.felix.eventadmin (1.3.0)
[2035] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.aopalliance (1.0.0.6)
[2036] [Active ] [ ] [ ] [ 30] org.springframework.core (3.0.7.RELEASE)
[2037] [Active ] [ ] [ ] [ 30] org.springframework.asm (3.0.7.RELEASE)
[2038] [Active ] [ ] [ ] [ 30] org.springframework.expression (3.0.7.RELEASE)
[2039] [Active ] [ ] [ ] [ 30] org.springframework.beans (3.0.7.RELEASE)
[2040] [Active ] [ ] [ ] [ 30] org.springframework.aop (3.0.7.RELEASE)
[2041] [Active ] [ ] [ ] [ 30] org.springframework.context (3.0.7.RELEASE)
[2043] [Active ] [ ] [ ] [ 30] org.springframework.context.support (3.0.7.RELEASE)
[2046] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.cglib (2.2.2.1)
[2047] [Active ] [ ] [ ] [ 30] org.springframework.osgi.io (1.2.1)
[2048] [Active ] [ ] [ ] [ 30] org.springframework.osgi.core (1.2.1)
[2049] [Active ] [ ] [ ] [ 30] org.springframework.osgi.extender (1.2.1)
[2050] [Active ] [ ] [ ] [ 30] org.springframework.osgi.extensions.annotations (1.2.1)
[2215] [Active ] [ ] [ ] [ 9] org.apache.geronimo.specs.geronimo-osgi-registry (1.1)
[2216] [Active ] [ ] [ ] [ 10] org.apache.servicemix.specs.activation-api-1.1 (1.9.0)
[2217] [Active ] [ ] [ ] [ 10] org.apache.geronimo.specs.geronimo-annotation_1.0_spec (1.1.1)
[2218] [Active ] [ ] [ ] [ 10] org.apache.geronimo.specs.geronimo-ws-metadata_2.0_spec (1.1.3)
[2219] [Active ] [ ] [ ] [ 10] org.apache.servicemix.specs.stax-api-1.0 (1.9.0)
[2220] [Active ] [ ] [ ] [ 10] org.apache.servicemix.specs.jaxb-api-2.2 (1.9.0)
[2221] [Active ] [ ] [ ] [ 10] org.apache.servicemix.specs.jaxws-api-2.2 (1.9.0)
[2222] [Active ] [ ] [ ] [ 10] org.apache.servicemix.specs.saaj-api-1.3 (1.9.0)
[2223] [Active ] [ ] [ ] [ 10] javax.mail (1.4.4)
[2225] [Active ] [ ] [ ] [ 20] stax2-api (3.1.1)
[2226] [Active ] [ ] [ ] [ 20] woodstox-core-asl (4.1.4)
[2227] [Active ] [ ] [ ] [ 20] org.apache.servicemix.bundles.jaxb-impl (2.2.1.1_2)
[2228] [Active ] [ ] [ ] [ 20] org.apache.servicemix.bundles.jaxb-xjc (2.2.1.1_2)
[2310] [Installed ] [ ] [ ] [ 50] com.mysql.jdbc (5.1.21)
[2311] [Installed ] [ ] [ ] [ 51] org.apache.openjpa (2.2.0)
[2312] [Installed ] [ ] [ ] [ 80] wrap_mvn_org.neo4j_neo4j-kernel_1.8_Export-Package_org.neo4j.unsafe.batchinsert_neo4j-kernel__split__ (0)
[2313] [Installed ] [ ] [ ] [ 80] wrap_mvn_org.neo4j_neo4j-lucene-index_1.8_Export-Package_org.neo4j.unsafe.batchinsert_neo4j-lucene-index__split__ (0)
[2314] [Installed ] [ ] [ ] [ 80] wrap_mvn_org.neo4j_neo4j-graph-matching_1.8 (0)
[2315] [Active ] [ ] [ ] [ 50] org.eclipse.emf.common (2.8.0.v20120911-0500)
[2316] [Active ] [ ] [ ] [ 50] org.eclipse.emf.ecore (2.8.1.v20120911-0500)
[2317] [Active ] [ ] [ ] [ 50] org.eclipse.emf.ecore.xmi (2.8.0.v20120911-0500)
[2475] [Installed ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-iri_0.9.4 (0)
[2476] [Installed ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-core_2.7.4 (0)
[2477] [Installed ] [ ] [ ] [ 50] wrap_mvn_org.apache.jena_jena-arq_2.9.4 (0)
[2482] [Active ] [ ] [ ] [ 40] org.apache.geronimo.specs.geronimo-annotation_1.1_spec (1.0.1)
[2483] [Active ] [ ] [ ] [ 40] com.google.guava (13.0.1)
[2484] [Active ] [ ] [ ] [ 40] org.apache.commons.io (2.4.0)
[2485] [Active ] [ ] [ ] [ 40] org.apache.commons.lang3 (3.1.0)
[2486] [Active ] [ ] [ ] [ 40] org.apache.commons.codec (1.7.0)
[2487] [Active ] [ ] [ ] [ 40] org.apache.servicemix.bundles.xpp3 (1.1.0.4c_6)
[2488] [Active ] [ ] [ ] [ 40] org.apache.servicemix.bundles.xstream (1.4.1.1)
[2489] [Active ] [ ] [ ] [ 40] com.fasterxml.jackson.core.jackson-core (2.1.0)
[2490] [Active ] [ ] [ ] [ 40] com.fasterxml.jackson.core.jackson-annotations (2.1.0)
[2491] [Active ] [ ] [ ] [ 40] com.fasterxml.jackson.core.jackson-databind (2.1.0)
[2492] [Active ] [ ] [ ] [ 40] joda-time (2.1)
[2493] [Active ] [ ] [ ] [ 40] org.joda.money (0.6)
[2494] [Active ] [ ] [ ] [ 40] com.fasterxml.jackson.datatype.jackson-datatype-joda (2.1.0)
[2495] [Active ] [ ] [ ] [ 40] com.fasterxml.jackson.datatype.jackson-datatype-guava (2.1.0)
[2496] [Active ] [ ] [ ] [ 40] org.apache.servicemix.bundles.commons-beanutils (1.8.3.1)
[2497] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.cglib (2.1.0.3_7)
[2498] [Active ] [ ] [ ] [ 50] org.apache.httpcomponents.httpcore (4.2.2)
[2511] [Active ] [ ] [ ] [ 50] org.apache.httpcomponents.httpclient (4.2.2)
[2513] [Installed ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-cypher_1.8_DynamicImport-Package__ (0)
[2514] [Installed ] [ ] [ ] [ 50] wrap_mvn_org.neo4j_neo4j-rest-graphdb_1.8.RC2_DynamicImport-Package__ (0)
[2583] [Active ] [Created ] [ ] [ 80] org.soluvas.web.bootstrap (1.0.0.SNAPSHOT)
[2584] [Active ] [Created ] [ ] [ 80] com.soluvas.image.shell (1.0.0.SNAPSHOT)
[2590] [Active ] [Created ] [ ] [ 80] id.co.bippo.salesorder.rs (5.0.0.SNAPSHOT)
[2592] [Active ] [Created ] [ ] [ 80] id.co.bippo.web.mall (5.0.0.SNAPSHOT)
[2593] [Active ] [Created ] [ ] [ 80] id.co.bippo.salesorder (5.0.0.SNAPSHOT)
[2596] [Active ] [Created ] [ ] [ 80] org.soluvas.web.stomp (1.0.0.SNAPSHOT)
[2597] [Active ] [Created ] [ ] [ 80] berbatik_dev_image.xml (0.0.0)
[2598] [Active ] [Created ] [ ] [ 80] com.soluvas.data.shell (1.0.0.SNAPSHOT)
[2601] [Active ] [ ] [ ] [ 80] com.berbatik.web (5.0.0.SNAPSHOT)
[2604] [Active ] [Created ] [ ] [ 80] berbatik_dev_ldap.xml (0.0.0)
[2605] [Active ] [Created ] [ ] [ 80] org.soluvas.web.nav.ui (1.0.0.SNAPSHOT)
[2608] [Active ] [Created ] [ ] [ 80] org.soluvas.web.nav (1.0.0.SNAPSHOT)
[2611] [Active ] [Created ] [ ] [ 80] com.soluvas.data (1.0.0.SNAPSHOT)
[2613] [Active ] [Created ] [ ] [ 80] org.soluvas.web.jqueryui (1.0.0.SNAPSHOT)
[2614] [Active ] [Created ] [ ] [ 80] id.co.bippo.web.sys (5.0.0.SNAPSHOT)
[2615] [Active ] [ ] [ ] [ 80] com.berbatik.product (5.0.0.SNAPSHOT)
[2616] [Active ] [ ] [ ] [ 80] com.berbatik.common (5.0.0.SNAPSHOT)
[2618] [Active ] [Created ] [ ] [ 80] id.co.bippo.shipping.shell (5.0.0.SNAPSHOT)
[2621] [Active ] [Created ] [ ] [ 80] berbatik_dev_graphdb.xml (0.0.0)
[2623] [Active ] [Created ] [ ] [ 80] id.co.bippo.web (5.0.0.SNAPSHOT)
[2630] [Active ] [Created ] [ ] [ 80] com.soluvas.cxf (1.0.0.SNAPSHOT)
[2631] [Active ] [Created ] [ ] [ 80] id.co.bippo.shipping.jne (5.0.0.SNAPSHOT)
[2633] [Active ] [Created ] [ ] [ 80] org.soluvas.web.nav.shell (1.0.0.SNAPSHOT)
[2634] [Active ] [Created ] [ ] [ 80] org.soluvas.web.jquery (1.0.0.SNAPSHOT)
[2636] [Active ] [Created ] [ ] [ 80] org.soluvas.web.jquerynotify (1.0.0.SNAPSHOT)
[2639] [Installed ] [ ] [ ] [ 80] berbatik_dev_app.xml (0.0.0)
[2640] [Active ] [Created ] [ ] [ 80] id.co.bippo.salesorder.shell (5.0.0.SNAPSHOT)
[2641] [Active ] [Created ] [ ] [ 80] com.soluvas.multitenant.shell (1.0.0.SNAPSHOT)
[2664] [Active ] [Created ] [ ] [ 80] org.soluvas.web.banner (1.0.0.SNAPSHOT)
[2665] [Active ] [Created ] [ ] [ 80] org.soluvas.web.backbone (1.0.0.SNAPSHOT)
[2671] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.web.mall (5.0.0.SNAPSHOT)
[2689] [Active ] [ ] [ ] [ 80] id.co.bippo.person (0.0.0)
[2692] [Active ] [ ] [ ] [ 80] id.co.bippo.story (0.0.0)
[2693] [Active ] [ ] [ ] [ 80] id.co.bippo.like (0.0.0)
[2698] [Active ] [Created ] [ ] [ 80] id.co.bippo.like (5.0.0.SNAPSHOT)
[2699] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop (5.0.0.SNAPSHOT)
[2700] [Active ] [Created ] [ ] [ 80] id.co.bippo.person (5.0.0.SNAPSHOT)
[2702] [Active ] [Created ] [ ] [ 80] id.co.bippo.story (5.0.0.SNAPSHOT)
[2703] [Active ] [Created ] [ ] [ 80] id.co.bippo.comment (5.0.0.SNAPSHOT)
[2705] [Active ] [Created ] [ ] [ 80] id.co.bippo.wink (5.0.0.SNAPSHOT)
[2707] [Active ] [ ] [ ] [ 80] commerce-features.xml (0.0.0)
[2714] [Active ] [Created ] [ ] [ 80] id.co.bippo.product (5.0.0.SNAPSHOT)
[2728] [Active ] [Created ] [ ] [ 80] id.co.bippo.wink.rs (5.0.0.SNAPSHOT)
[2729] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.shell (5.0.0.SNAPSHOT)
[2734] [Active ] [Created ] [ ] [ 80] org.ops4j.pax.wicket.service (1.1.1)
[2775] [Active ] [ ] [ ] [ 80] org.apache.shiro.core (1.2.1)
[2776] [Active ] [ ] [ ] [ 80] org.apache.shiro.web (1.2.1)
[2792] [Active ] [Created ] [ ] [ 80] id.co.bippo.app (5.0.0.SNAPSHOT)
[2794] [Active ] [Created ] [ ] [ 80] id.co.bippo.story.rs (5.0.0.SNAPSHOT)
[2797] [Active ] [ ] [ ] [ 80] org.apache.shiro.spring (1.2.1)
[2803] [Installed ] [ ] [ ] [ 80] wrap_mvn_org.wicketstuff_wicketstuff-shiro_1.5.8 (0)
[2818] [Active ] [Created ] [ ] [ 80] id.co.bippo.common (5.0.0.SNAPSHOT)
[2819] [Active ] [Created ] [ ] [ 80] id.co.bippo.person.web.sys (5.0.0.SNAPSHOT)
[2840] [Active ] [Created ] [ ] [ 80] id.co.bippo.web.shop (5.0.0.SNAPSHOT)
[2842] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.web.shop (5.0.0.SNAPSHOT)
[2849] [Active ] [Created ] [ ] [ 80] org.soluvas.web.login (1.0.0.SNAPSHOT)
[2852] [Active ] [Created ] [ ] [ 80] id.co.bippo.follow (5.0.0.SNAPSHOT)
[2874] [Active ] [ ] [ ] [ 80] org.soluvas.data (2.0.0.SNAPSHOT)
[2875] [Active ] [Created ] [ ] [ 80] org.soluvas.security (2.0.0.SNAPSHOT)
[2877] [Active ] [Created ] [ ] [ 80] id.co.bippo.like.shell (5.0.0.SNAPSHOT)
[2878] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.rs (5.0.0.SNAPSHOT)
[2880] [Active ] [ ] [ ] [ 80] org.soluvas.cdi (2.0.0.SNAPSHOT)
[2881] [Active ] [ ] [ ] [ 80] org.soluvas.push (2.0.0.SNAPSHOT)
[2882] [Active ] [Created ] [ ] [ 80] org.soluvas.commons (2.0.0.SNAPSHOT)
[2883] [Active ] [ ] [ ] [ 80] org.soluvas.ldap (2.0.0.SNAPSHOT)
[2884] [Active ] [ ] [ ] [ 80] org.soluvas.async (2.0.0.SNAPSHOT)
[2886] [Active ] [Created ] [ ] [ 80] org.soluvas.image (2.0.0.SNAPSHOT)
[2887] [Active ] [Created ] [ ] [ 80] org.soluvas.json (2.0.0.SNAPSHOT)
[2889] [Active ] [ ] [ ] [ 80] org.soluvas.mongo (2.0.0.SNAPSHOT)
[2890] [Active ] [Created ] [ ] [ 80] org.soluvas.facebook (2.0.0.SNAPSHOT)
[2895] [Active ] [Created ] [ ] [ 80] id.co.bippo.web.pub (5.0.0.SNAPSHOT)
[2896] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.web.sys (5.0.0.SNAPSHOT)
[2899] [Active ] [Created ] [ ] [ 80] id.co.bippo.person.web.mall (5.0.0.SNAPSHOT)
[2901] [Active ] [Created ] [ ] [ 80] id.co.bippo.salesorder.web (5.0.0.SNAPSHOT)
[2902] [Active ] [Created ] [ ] [ 80] id.co.bippo.person.shell (5.0.0.SNAPSHOT)
[2904] [Active ] [Created ] [ ] [ 80] id.co.bippo.like.rs (5.0.0.SNAPSHOT)
[2905] [Active ] [Created ] [ ] [ 80] id.co.bippo.follow.rs (5.0.0.SNAPSHOT)
[2906] [Active ] [Created ] [ ] [ 80] id.co.bippo.comment.rs (5.0.0.SNAPSHOT)
[2959] [Active ] [ ] [ ] [ 50] com.mysema.commons.lang (0.2.4)
[2960] [Active ] [ ] [ ] [ 50] com.mysema.querydsl.core (2.8.2)
[2967] [Active ] [ ] [ ] [ 80] org.soluvas.jaxrs (2.0.0.SNAPSHOT)
[2973] [Active ] [Created ] [ ] [ 80] org.soluvas.web.site (1.0.0.SNAPSHOT)
[2974] [Active ] [Created ] [ ] [ 80] id.co.bippo.product.web.pub (5.0.0.SNAPSHOT)
[2975] [Active ] [Created ] [ ] [ 80] id.co.bippo.person.web.pub (5.0.0.SNAPSHOT)
[2979] [Active ] [Created ] [ ] [ 80] id.co.bippo.person.web.shop (5.0.0.SNAPSHOT)
[2990] [Installed ] [ ] [ ] [ 80] com.typesafe.akka.actor (2.1.0.M1)
[2991] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop.shell (5.0.0.SNAPSHOT)
[2992] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop.web.sys (5.0.0.SNAPSHOT)
[2993] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop.web.pub (5.0.0.SNAPSHOT)
[2994] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop.web.shop (5.0.0.SNAPSHOT)
[2995] [Active ] [Created ] [ ] [ 80] id.co.bippo.shop.rs (5.0.0.SNAPSHOT)
[3016] [Active ] [Created ] [ ] [ 80] id.co.bippo.booking.rs (5.0.0.SNAPSHOT)
[3017] [Active ] [Created ] [ ] [ 80] id.co.bippo.booking (5.0.0.SNAPSHOT)
[3018] [Active ] [Created ] [ ] [ 80] berbatik_app.xml (0.0.0)
[3019] [Active ] [Created ] [ ] [ 80] berbatik_ldap.xml (0.0.0)
[3020] [Active ] [Created ] [ ] [ 80] berbatik_backbone.xml (0.0.0)
[3021] [Active ] [Created ] [ ] [ 80] berbatik_graphdb.xml (0.0.0)
[3022] [Active ] [Failure ] [ ] [ 80] berbatik_security.xml (0.0.0)
[3023] [Active ] [Created ] [ ] [ 80] berbatik_image.xml (0.0.0)
[3024] [Active ] [ ] [ ] [ 30] org.apache.ws.xmlschema.core (2.0.3)
[3025] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.wsdl4j (1.6.2.6)
[3026] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.xmlresolver (1.2.0.5)
[3027] [Active ] [ ] [ ] [ 30] org.apache.servicemix.bundles.fastinfoset (1.2.7.4)
[3028] [Active ] [Created ] [ ] [ 40] org.apache.cxf.cxf-api (2.6.3)
[3029] [Active ] [Created ] [ ] [ 40] org.apache.cxf.cxf-rt-core (2.6.3)
[3030] [Active ] [ ] [ ] [ 40] org.apache.cxf.cxf-rt-management (2.6.3)
[3031] [Active ] [Created ] [ ] [ 40] org.apache.cxf.karaf.cxf-karaf-commands (2.6.3)
[3032] [Active ] [ ] [ ] [ 40] org.apache.cxf.cxf-rt-databinding-jaxb (2.6.3)
[3033] [Active ] [Created ] [ ] [ 40] org.apache.cxf.cxf-rt-transports-http (2.6.3)
[3034] [Active ] [ ] [ ] [ 30] org.codehaus.jettison.jettison (1.3.2)
[3035] [Active ] [ ] [ ] [ 40] org.apache.cxf.cxf-rt-bindings-xml (2.6.3)
[3036] [Active ] [ ] [ ] [ 40] org.apache.cxf.cxf-rt-rs-extension-providers (2.6.3)
[3037] [Active ] [ ] [ ] [ 40] org.apache.cxf.cxf-rt-rs-extension-search (2.6.3)
[3038] [Active ] [Created ] [ ] [ 40] org.apache.cxf.cxf-rt-frontend-jaxrs (2.6.3)
{code}
> Blueprint throws java.util.ConcurrentModificationException when starting bundle
> -------------------------------------------------------------------------------
>
> Key: ARIES-904
> URL: https://issues.apache.org/jira/browse/ARIES-904
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: blueprint-core-0.3.2, blueprint-core-1.0.1
> Environment: Originally Karaf 2.2.8 and blueprint 0.3.2.
> But still occur with Blueprint 1.0.1 in Karaf 2.3.0:
> Karaf
> Karaf version 2.3.0
> Karaf home /home/ceefour/git/bippo-commerce5/karaf
> Karaf base /home/ceefour/git/bippo-commerce5/karaf
> OSGi Framework org.apache.felix.framework - 4.0.3
> JVM
> Java Virtual Machine OpenJDK 64-Bit Server VM version 23.2-b09
> Version 1.7.0_07
> Vendor Oracle Corporation
> Uptime 2 hours 3 minutes
> Total compile time 38.300 seconds
> Threads
> Live threads 106
> Daemon threads 91
> Peak 138
> Total started 443
> Memory
> Current heap size 73,629 kbytes
> Maximum heap size 466,048 kbytes
> Committed heap size 309,184 kbytes
> Pending objects 0
> Garbage collector Name = 'PS Scavenge', Collections = 834, Time = 5.028 seconds
> Garbage collector Name = 'PS MarkSweep', Collections = 5, Time = 1.238 seconds
> Classes
> Current classes loaded 12,992
> Total classes loaded 13,353
> Total classes unloaded 361
> Operating system
> Name Linux version 3.2.0-32-generic
> Architecture amd64
> Processors 8
> Reporter: Hendy Irawan
>
> I'm not sure what combination exactly causes this, but current state of my project (which is unfortunately already quite complex) can always trigger this bug.
> Probably related to #FELIX-3242.
> {code}
> 2012-08-15 07:09:45,081 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 364 | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle id.co.bippo.commerce.core
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)[:1.7.0_03]
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)[:1.7.0_03]
> at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_03]
> at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:87)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:320)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_03]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_03]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (ARIES-904) Blueprint throws
java.util.ConcurrentModificationException when starting bundle
Posted by "Hendy Irawan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434689#comment-13434689 ]
Hendy Irawan commented on ARIES-904:
------------------------------------
Probably a useful snippet of the Blueprint XML.
I'm using JPA via EntityManagerFactory (cannot use jpa:context due to #ARIES-796 ), with CM PropertyPlaceholder as follows :
{code}
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0
http://aries.apache.org/xmlns/jpa/v1.0.0 http://aries.apache.org/xmlns/jpa/v1.0.0
http://aries.apache.org/xmlns/transactions/v1.0.0 http://aries.apache.org/xmlns/transactions/v1.0.0">
<cm:property-placeholder persistent-id="id.co.bippo.commerce" update-strategy="reload">
<cm:default-properties>
<cm:property name="auth.ldap.uri" value="ldap://localhost:10389"/>
<cm:property name="auth.ldap.bind.dn" value="uid=admin,ou=system"/>
<cm:property name="auth.ldap.bind.password" value="secret"/>
<cm:property name="auth.ldap.basedn" value="ou=users,dc=dev,dc=berbatik,dc=com"/>
<cm:property name="image.dav.uri" value="http://berbatik_dev:bippo@dav.berbatik.annafi.dev/"/>
<cm:property name="image.public.uri" value="http://dav.berbatik.annafi.dev/"/>
<cm:property name="image.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev_image"/>
<cm:property name="booking.mongo.uri" value="mongodb://127.0.0.1:27017/berbatik_dev"/>
<cm:property name="magento.apiuser" value="sysadmin"/>
<cm:property name="magento.apikey" value="admin123"/>
<cm:property name="magento.baseurl" value="http://www.berbatik.annafi.dev/"/>
</cm:default-properties>
</cm:property-placeholder>
<reference id="magentoEmf" interface="javax.persistence.EntityManagerFactory"
filter="(osgi.unit.name=magento)"/>
<bean id="magentoEm" factory-ref="magentoEmf" factory-method="createEntityManager" destroy-method="close"/>
<bean id="productDao" class="id.co.bippo.magento.jpa.dao.ProductDao">
<!-- jpa:context unitname="magento" property="em" # see https://issues.apache.org/jira/browse/ARIES-796 /-->
<property name="em" ref="magentoEm"/>
<tx:transaction method="*" value="Required" />
</bean>
<service ref="productDao" auto-export="class-hierarchy">
<service-properties>
<entry key="clientId" value="berbatik"/>
<entry key="tenantEnv" value="dev"/>
<entry key="tenantId" value="berbatik"/>
<entry key="namespace" value=""/>
</service-properties>
</service>
</blueprint>
{code}
Commenting this line:
{code}
<property name="em" ref="magentoEm"/>
{code}
makes the ConcurrentModificationException go away.
> Blueprint throws java.util.ConcurrentModificationException when starting bundle
> -------------------------------------------------------------------------------
>
> Key: ARIES-904
> URL: https://issues.apache.org/jira/browse/ARIES-904
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: blueprint-core-0.3.2
> Reporter: Hendy Irawan
>
> I'm not sure what combination exactly causes this, but current state of my project (which is unfortunately already quite complex) can always trigger this bug.
> Probably related to #FELIX-3242.
> {code}
> 2012-08-15 07:09:45,081 | ERROR | rint Extender: 1 | BlueprintContainerImpl | container.BlueprintContainerImpl 364 | 9 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle id.co.bippo.commerce.core
> java.util.ConcurrentModificationException
> at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:390)[:1.7.0_03]
> at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:401)[:1.7.0_03]
> at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)[:1.7.0_03]
> at org.apache.aries.blueprint.container.RecipeBuilder.createRepository(RecipeBuilder.java:87)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:495)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:320)[9:org.apache.aries.blueprint:0.3.2]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[9:org.apache.aries.blueprint:0.3.2]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_03]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_03]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_03]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_03]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira