karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ioan Eugen Stan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3302) Scr issues when uninstalling features
Date Thu, 16 Oct 2014 21:35:34 GMT
Ioan Eugen Stan created KARAF-3302:

             Summary: Scr issues when uninstalling features 
                 Key: KARAF-3302
                 URL: https://issues.apache.org/jira/browse/KARAF-3302
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 3.0.2
            Reporter: Ioan Eugen Stan

The easiest way to reproduce this issue  is by following the steps in https://github.com/ieugen/osgi-jax-rs-connector/tree/master/karaf

If I publish a service via SCR, I get the garbage when uninstalling the feature, but if I
publish it via BundleActivator, then things work fine.

    feature:repo-add mvn:com.eclipsesource.jaxrs/features/0.0.1-SNAPSHOT/xml/features
    feature:install scr http
    feature:install jax-rs-connector jax-rs-provider-moxy
    install mvn:com.eclipsesource.jaxrs/jax-rs-sample/0.0.1-SNAPSHOT
    feature:uninstall  jax-rs-connector 

When you remove the jax-rs-connector feature and the JAX-RS publisher stops, it will spill
out a lof garbage like: 
ERROR: Bundle org.apache.karaf.shell.commands [35] ServiceRegistrationImpl: Error ungetting
service. (java.lang.NullPointerException)
at org.apache.karaf.service.guard.impl.GuardProxyCatalog$ProxyServiceFactory.ungetService(GuardProxyCatalog.java:460)
at org.apache.felix.framework.ServiceRegistrationImpl.ungetFactoryUnchecked(ServiceRegistrationImpl.java:349)
at org.apache.felix.framework.ServiceRegistrationImpl.ungetService(ServiceRegistrationImpl.java:258)

You can find most of it here: https://paste.apache.org/7Oyi

This message was sent by Atlassian JIRA

View raw message