Hi,

I have an osgi bundle, which uses apache cxf-jaxrs. While this works ok, I
have noticed an entry in the logs which indicates the bundle is not cleaning
up itself when being stopped (see below)

Is there any suggested way to get around this or is it just a bug I need to
live with for the moment. I'm still not sure if it's related to Karaf and/or
blueprint

in bundle demo.bundle/0.0.1.SNAPSHOT incorrectly threw an exception from its
destroy method.
java.lang.NullPointerException
        at
java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)[:1.8.0_73]
        at
java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)[:1.8.0_73]
        at
org.apache.cxf.transport.http.DestinationRegistryImpl.removeDestination(DestinationRegistryImpl.java:63)
        at
org.apache.cxf.transport.http.AbstractHTTPDestination.deactivate(AbstractHTTPDestination.java:965)
        at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:65)
        at org.apache.cxf.endpoint.ServerImpl.stop(ServerImpl.java:174)
        at org.apache.cxf.endpoint.ServerImpl.destroy(ServerImpl.java:180)
        at
org.apache.cxf.bus.managers.ServerRegistryImpl.preShutdown(ServerRegistryImpl.java:90)
        at
org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(CXFBusLifeCycleManager.java:97)
        at
org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:326)
        at
org.apache.cxf.bus.extension.ExtensionManagerBus.shutdown(ExtensionManagerBus.java:313)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)[:1.8.0_73]
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_73]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_73]
        at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_73]
        at
org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)[12:org.apache.aries.blueprint.core:1.7.1]
        at
org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)[12:org.apache.aries.blueprint.core:1.7.1]
        at
org.apache.aries.blueprint.container.BeanRecipe.destroy(BeanRecipe.java:887)[12:org.apache.aries.blueprint.core:1.7.1]
        at
org.apache.aries.blueprint.container.BlueprintRepository.destroy(BlueprintRepository.java:329)[12:org.apache.aries.blueprint.core:1.7.1]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.destroyComponents(BlueprintContainerImpl.java:765)[12:org.apache.aries.blueprint.core:1.7.1]
        at
org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:964)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Null-Pointer-exception-when-shutting-down-bundle-using-cxf-tp4050332.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to