[
https://issues.apache.org/jira/browse/KARAF-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258372#comment-14258372
]
Dmitry Konstantinov commented on KARAF-3302:
--------------------------------------------
as a workaround you can comment the following line in etc/system.properties to
disable Guard Proxies:
karaf.secured.services = (&(osgi.command.scope=*)(osgi.command.function=*))
> 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)
> 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
(v6.3.4#6332)