Daniel McGreal created KARAF-4750: ------------------------------------- Summary: Installing a feature can result in an ResolutionException which incorrectly reports the underlying issue Key: KARAF-4750 URL: https://issues.apache.org/jira/browse/KARAF-4750 Project: Karaf Issue Type: Bug Affects Versions: 4.0.7, 4.0.5 Environment: OSX Reporter: Daniel McGreal
During feature:install, the following error can be reported: 08:10:49,424 | ERROR | ShellUtil:149 | 44 | Exception caught while executing command org.osgi.service.resolver.ResolutionException: Unable to resolve org.apache.karaf.features.core/4.0.5: missing requirement [org.apache.karaf.features.core/4.0.5] osgi.wiring.package; filter:="(osgi.wiring.package=org.eclipse.equinox.region.management)" at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:404)[org.apache.felix.framework-5.4.0.jar:] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:179)[org.apache.felix.framework-5.4.0.jar:] at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[9:org.apache.karaf.features.core:4.0.5] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[9:org.apache.karaf.features.core:4.0.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1152)[9:org.apache.karaf.features.core:4.0.5] at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1048)[9:org.apache.karaf.features.core:4.0.5] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_101] at java.lang.Thread.run(Thread.java:745)[:1.7.0_101] However this Exception seems to mask the true cause, which (for me) was a uses constraint violation: {root=Uses constraint violation. Unable to resolve resource utils.common [utils.common/3.1.0.BUILD-201609281517] because it is exposed to package 'rx' from resources io.reactivex.rxjava [io.reactivex.rxjava/1.1.0] and io.reactivex.rxjava-reactive-streams [io.reactivex.rxjava-reactive-streams/1.0.1] via two dependency chains. Fixing this problem removed the resolution of the reported ResolutionException Another user reports resolving this by updating his feature's XML schema to 1.3. See http://karaf.922171.n3.nabble.com/missing-requirement-org-apache-karaf-features-core-4-0-5-osgi-wiring-package-filter-quot-osgi-wiring-tt4047032.html#none -- This message was sent by Atlassian JIRA (v6.3.4#6332)