You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/12/03 14:10:00 UTC

[jira] [Resolved] (KARAF-3302) Scr issues when uninstalling features

     [ https://issues.apache.org/jira/browse/KARAF-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-3302.
-----------------------------------------
    Resolution: Cannot Reproduce

It works fine with Karaf 4.2.x

> 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
>            Priority: Major
>
> 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)
> 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
(v7.6.3#76005)