karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominik Przybysz <alien11...@gmail.com>
Subject Re: Problem with the newest blueprint in karaf 4.2.x
Date Wed, 13 Feb 2019 19:50:05 GMT
@Jean-Baptiste We are using cm-properties as in the provided code before. I
don't see cm:properties in blueprint-cm-1.3.0.xsd

@Grzegorz we try to prepare the examples ASAP

śr., 13 lut 2019 o 18:39 Jean-Baptiste Onofré <jb@nanthrax.net> napisał(a):

> Hi,
>
> It's normal, and I bet it was the case before.
>
> Depending how you create the config, it can be created empty (no
> property first) and updated later.
>
> You should use managed factory (so update reload in blueprint) to be up
> to date.
>
> I also notified it's especially true with cm:properties (instead of
> property placeholder).
>
> Are you using cm:properties ?
>
> Regards
> JB
>
> On 13/02/2019 14:10, Dominik Przybysz wrote:
> > Hi,
> > we have a problem with Blueprint in newest Karaf versions. We try to
> > upgrade Karaf from version 4.0.4 to 4.2.2/4.2.3. As we do that, we have
> a
> > strange situation during application startup. Bundles await for Config
> > Admin startup (opinion based on logs), but after that, sometimes our CM
> > Properties are injected empty. This is nondeterministic - sometimes
> > injection works fine, sometimes not. It looks like some kind of the race
> > between threads. On 4.0.4 everything seems to work fine.
> >
> > Steps to reproduce:
> > 1. Build Karaf 4.2.2/4.2.3 distribution using karaf-maven-plugin,
> including
> > a few apps using CM Properties.
> > 2. Start you distribution.
> > 3. Log injected properties.
> > 4. Observe that the properties are sometimes empty (after the bundle
> > restart everything is correct).
> >
> > Apache Karaf (4.0.4)
> >
> > karaf@root()> list -t 0 | grep -i blueprint
> > 11 | Active   |  20 | 1.0.1    | Apache Aries Blueprint API
> > 12 | Active   |  20 | 1.0.7    | Apache Aries Blueprint CM
> > 13 | Active   |  20 | 1.5.0    | Apache Aries Blueprint Core, Fragments:
> 14
> > 14 | Resolved |  20 | 1.0.0    | Apache Aries Blueprint Core Compatiblity
> > Fragment Bundle, Hosts: 13
> > 16 | Active   |  30 | 1.1.5    | Apache Aries JMX Blueprint API
> > 17 | Active   |  30 | 1.1.5    | Apache Aries JMX Blueprint Core
> > 23 | Active   |  30 | 4.0.4    | Apache Karaf :: Bundle ::
> > BlueprintStateService
> > 26 | Active   |  24 | 4.0.4    | Apache Karaf :: Deployer :: Blueprint
> > 33 | Active   |  30 | 4.0.4    | Apache Karaf :: JAAS :: Blueprint ::
> Config
> >
> >
> > Apache Karaf (4.2.2)
> >
> > karaf@root()> list -t 0 | grep -i blueprint
> >  76 ? Active   ?  20 ? 1.0.1                                     ? Apache
> > Aries Blueprint API
> >  77 ? Active   ?  20 ? 1.3.1                                     ? Apache
> > Aries Blueprint CM
> >  78 ? Active   ?  20 ? 1.10.1                                    ? Apache
> > Aries Blueprint Core, Fragments: 79
> >  79 ? Resolved ?  20 ? 1.0.0                                     ? Apache
> > Aries Blueprint Core Compatiblity Fragment Bundle, Hosts: 78
> >  80 ? Active   ?  30 ? 1.2.0                                     ? Apache
> > Aries JMX Blueprint API
> >  81 ? Active   ?  30 ? 1.2.0                                     ? Apache
> > Aries JMX Blueprint Core
> >  84 ? Active   ?  80 ? 1.0.2                                     ? Apache
> > Aries Transaction Blueprint
> > 132 ? Active   ?  30 ? 4.2.2                                     ? Apache
> > Karaf :: Bundle :: BlueprintStateService
> > 133 ? Active   ?  24 ? 4.2.2                                     ? Apache
> > Karaf :: Deployer :: Blueprint
> > 137 ? Active   ?  30 ? 4.2.2                                     ? Apache
> > Karaf :: JAAS :: Blueprint :: Config
> >
> > What could be a source of problem? Is there any workaround for that?
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


-- 
Pozdrawiam / Regards,
Dominik Przybysz

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message