Hi,

What about package:imports | grep your package? Does your consumer bundle
imports it?

Regards,

Charlie

2016-03-29 13:06 GMT+02:00 Tim Ward <[email protected]>:

> The error that you've provided indicates a missing service dependency for
> a service exposing the com.foo.bar.myClass interface.
>
> You should investigate why this service is not present, or if it is, why
> bundle B has not wired to the same class space for package com.foo.bar as
> the service provider.
>
> Regards
>
> Tim Ward
>
> OSGi IoT EG Chair
>
> > On 28 Mar 2016, at 23:36, asookazian2 <[email protected]> wrote:
> >
> > Karaf 3.0.3
> >
> > bundle B is in GracePeriod (and ultimately Failure) with dependency on
> > bundle A (which is active and has lower start-level than bundle B).
> >
> > eventually bundle:diag 123 (for bundle B) gives:
> >
> > Status: Failure
> > Blueprint
> > 3/28/16 3:24 PM
> > Exception:
> > null
> > java.util.concurrent.TimeoutException
> >    at
> >
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:336)
> >    at
> >
> org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
> >    at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> >    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >    at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> >    at
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> >    at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> >    at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >    at java.lang.Thread.run(Thread.java:745)
> >
> > Missing dependencies:
> > (objectClass=com.foo.bar.myClass)
> >
> > When I run package:exports | grep com.foo.bar I see only the one expected
> > bundle which is exported same package (I've triple-checked the
> manifest.mf
> > files for both bundles in data/cache/xyz).  i.e. there is no
> split-package
> > problem in this scenario afaik.
> >
> > Any idea how/why this happens and how to resolve?  thx.
> >
> >
> >
> > --
> > View this message in context:
> http://karaf.922171.n3.nabble.com/exported-package-in-bundle-A-is-not-able-to-be-imported-in-bundle-B-tp4046019.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
Charlie Mordant

Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent

Reply via email to