karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Vorburger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5767) missing OSGi service for @Reference in Action does not lead to failed diag but
Date Wed, 23 May 2018 20:38:00 GMT
Michael Vorburger created KARAF-5767:
----------------------------------------

             Summary: missing OSGi service for @Reference in Action does not lead to failed
diag but 
                 Key: KARAF-5767
                 URL: https://issues.apache.org/jira/browse/KARAF-5767
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 4.2.0
            Reporter: Michael Vorburger


While [migrating a Karaf command from extending deprecated OsgiCommandSupport to implementing
the Action interface|https://git.opendaylight.org/gerrit/#/c/72204], I've noticed that if
you have a {{@Reference}} to a type under which there is no OSGi Service registered, then
that command is simply ignored - without any error in the log.

While I understand perfectly well that this lazy initialiation is how Declarative Services
(DS) work, because the bundle that provides said service could still be installed later, it
still seems to me that {{diag}} (which is based on {{org.apache.karaf.bundle.core.BundleService}}
AFAIK) could and in an ideal world should report such missing services.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message