Hi JB,

Service B does not register with the same interface (nor a subtype).

We still use Blueprint using the aries-blueprint feature.

What is strange is that A fails without waiting any grace period. The waited 
reference is used inside the Blueprint as an argument of a bean, which is used 
as a factory-ref for another bean, which is used as an argument for a "last" 
bean :S

Regards,
JP

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:[email protected]] 
Envoyé : vendredi 18 septembre 2015 10:49
À : [email protected]
Objet : Re: Karaf upgrade 3.0.2 -> 4.0.1 leads to ServiceUnavailableException

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