SCR unsatisfied reference to a registered service

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SCR unsatisfied reference to a registered service

Alex Soto
Hello,

I am running  Karaf  4.0.8, and I  have a DS component  that is in unsatisfied state:

...
  Reference: CertChain
    Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
    Target Filter: (component=clrgen)
    Cardinality: 1..1
    Policy: static
    Policy option: reluctant
    Reference Scope: bundle
...
UnsatisfiedReference: CertChain
      Target: (component=clrgen)
      (no target services)

But the service is actually registered:

karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
[org.camp.scms.poc.commons.ssm.CertificateChain]
------------------------------------------------
 certificate.chain.dir = .ma/crlgen/certchain
 component = crlgen
 component.name = CRLGenCertificateChain
 felix.fileinstall.filename = file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
 service.bundleid = 116
 service.id = 223
 service.pid = scms.crlgen.cert.chain
 service.scope = bundle
Provided by : 
 SCMS :: MA :: hsm-bouncy-castle (116)


I have other services of the same interface (org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but with different component property.  Only this one does not work, and I don’t know why.

Any hints?


Thanks and best regards,
Alex soto



Reply | Threaded
Open this post in threaded view
|

Re: SCR unsatisfied reference to a registered service

David Jencks-2
Clrgen versus crlgen? A typo that in my experience always requires a new pair of eyes to see :-)
David Jencks 

Sent from my iPhone

On Feb 13, 2018, at 11:16 AM, Alex Soto <[hidden email]> wrote:

Hello,

I am running  Karaf  4.0.8, and I  have a DS component  that is in unsatisfied state:

...
  Reference: CertChain
    Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
    Target Filter: (component=clrgen)
    Cardinality: 1..1
    Policy: static
    Policy option: reluctant
    Reference Scope: bundle
...
UnsatisfiedReference: CertChain
      Target: (component=clrgen)
      (no target services)

But the service is actually registered:

karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
[org.camp.scms.poc.commons.ssm.CertificateChain]
------------------------------------------------
 certificate.chain.dir = .ma/crlgen/certchain
 component = crlgen
 component.name = CRLGenCertificateChain
 felix.fileinstall.filename = file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
 service.bundleid = 116
 service.id = 223
 service.pid = scms.crlgen.cert.chain
 service.scope = bundle
Provided by : 
 SCMS :: MA :: hsm-bouncy-castle (116)


I have other services of the same interface (org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but with different component property.  Only this one does not work, and I don’t know why.

Any hints?


Thanks and best regards,
Alex soto



Reply | Threaded
Open this post in threaded view
|

Re: SCR unsatisfied reference to a registered service

Alex Soto
Awesome, how could I not see that!  Thank you David!


On Feb 13, 2018, at 2:34 PM, David Jencks <[hidden email]> wrote:

Clrgen versus crlgen? A typo that in my experience always requires a new pair of eyes to see :-)
David Jencks 

Sent from my iPhone

On Feb 13, 2018, at 11:16 AM, Alex Soto <[hidden email]> wrote:

Hello,

I am running  Karaf  4.0.8, and I  have a DS component  that is in unsatisfied state:

...
  Reference: CertChain
    Interface Name: org.camp.scms.poc.commons.ssm.CertificateChain
    Target Filter: (component=clrgen)
    Cardinality: 1..1
    Policy: static
    Policy option: reluctant
    Reference Scope: bundle
...
UnsatisfiedReference: CertChain
      Target: (component=clrgen)
      (no target services)

But the service is actually registered:

karaf@root()> service:list org.camp.scms.poc.commons.ssm.CertificateChain
[org.camp.scms.poc.commons.ssm.CertificateChain]
------------------------------------------------
 certificate.chain.dir = .ma/crlgen/certchain
 component = crlgen
 component.name = CRLGenCertificateChain
 felix.fileinstall.filename = file:/Users/asoto/git/ma/itest/target/exam/8bc25928-5a21-4c17-ab97-549d98f1150a/etc/scms.crlgen.cert.chain.cfg
 service.bundleid = 116
 service.id = 223
 service.pid = scms.crlgen.cert.chain
 service.scope = bundle
Provided by : 
 SCMS :: MA :: hsm-bouncy-castle (116)


I have other services of the same interface (org.camp.scms.poc.commons.ssm.CertificateChain) registered as well, but with different component property.  Only this one does not work, and I don’t know why.

Any hints?


Thanks and best regards,
Alex soto