Hi JP,

Does Service B register the "higher services" with the same interface as A ?

Do you still use blueprint in Karaf 4 (and so proxies) or directly an Activator (extending BaseActivator) ?

Regards
JB

On 09/18/2015 10:38 AM, CLEMENT Jean-Philippe wrote:
Dear Karaf,

I upgraded Karaf version from 3.0.2 to 4.0.1 and obtained a
ServiceUnavailbleException from one of our bundles – which was working
fine with the former version of Karaf.

I must first say that services registering/retrieval implied in this
issue are not made in a clean way as they imply kind of circular
dependencies. But it was working fine with Karaf 3.0.2. Those services
are registered and retrieved using Blueprint.

We have a bundle A which exports base services which are used by a
bundle B. Bundle B will use those base services and will export higher
added value ones. One of B services are used by A. This service
reference (A) is set as optional.

I don’t know whether Karaf 3.0.2 was accepting something wrong which was
corrected in 4.0.1, if it’s a 4.0.1 bug, or maybe just a behavior
difference which may be configured somewhere.

Maybe first, is the starting scenario correct (even if not recommended)?

Thank you,

JP

[@@ OPEN @@]


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to