[ 
https://issues.apache.org/jira/browse/KARAF-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré updated KARAF-3748:
----------------------------------------
    Fix Version/s:     (was: 4.0.8)
                       (was: 4.1.0)

> Installing activemq-blueprint feature sometimes fails with uses constraint 
> violation
> ------------------------------------------------------------------------------------
>
>                 Key: KARAF-3748
>                 URL: https://issues.apache.org/jira/browse/KARAF-3748
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 4.0.0.M3
>            Reporter: Achim Finke
>
> From time to time you get the following exception when installing 
> activemq-blueprint feature. 
> {code}
> org.osgi.service.resolver.ResolutionException: Uses constraint violation. 
> Unable to resolve resource org.apache.activemq.activemq-blueprint 
> [org.apache.activemq.activemq-blueprint/5.11.1] because it is exposed to 
> package 'org.apache.aries.blueprint' from resources 
> org.apache.aries.blueprint.core [org.apache.aries.blueprint.core/1.4.3] and 
> org.apache.aries.blueprint.core [org.apache.aries.blueprint.core/1.4.3] via 
> two dependency chains.
> Chain 1:
>   org.apache.activemq.activemq-blueprint 
> [org.apache.activemq.activemq-blueprint/5.11.1]
>     import: 
> (&(osgi.wiring.package=org.apache.aries.blueprint)(version>=1.0.0)(!(version>=2.0.0)))
>      |
>     export: osgi.wiring.package: org.apache.aries.blueprint
>   org.apache.aries.blueprint.core [org.apache.aries.blueprint.core/1.4.3]
> Chain 2:
>   org.apache.activemq.activemq-blueprint 
> [org.apache.activemq.activemq-blueprint/5.11.1]
>     import: 
> (&(osgi.wiring.package=org.apache.xbean.blueprint.context.impl)(version>=3.13.0)(!(version>=4.0.0)))
>      |
>     export: osgi.wiring.package=org.apache.xbean.blueprint.context.impl; 
> uses:=org.apache.aries.blueprint
>   org.apache.xbean.blueprint [org.apache.xbean.blueprint/3.18.0]
>     import: 
> (&(osgi.wiring.package=org.apache.aries.blueprint)(version>=1.0.0)(!(version>=2.0.0)))
>      |
>     export: osgi.wiring.package: org.apache.aries.blueprint
>   org.apache.aries.blueprint.core [org.apache.aries.blueprint.core/1.4.3]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1410)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1190)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1502)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1190)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkDynamicPackageSpaceConsistency(ResolverImpl.java:1502)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1190)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:289)[org.apache.felix.framework-5.0.0.jar:]
>       at 
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:185)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
>       at 
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:261)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
>       at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1061)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
>       at 
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:960)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_31]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_31]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_31]
>       at java.lang.Thread.run(Thread.java:745)[:1.8.0_31]
> {code}
> The behaviour is not predictable. Installation worked x times, afterwards 
> installation failed y times so you may need some trys to reproduce.
> To reproduce execute:
> {code}
> feature:repo-add activemq 5.11.1
> feature:install activemq-blueprint
> {code}
> if you don't get the exception stop the container, delete data folder and try 
> again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to