Exception when stopping DOSGi bundle
------------------------------------

                 Key: CXF-2029
                 URL: https://issues.apache.org/jira/browse/CXF-2029
             Project: CXF
          Issue Type: Bug
          Components: Distributed-OSGi
            Reporter: David Bosschaert


When I shut down the DOSGi bundle, the following exception happens. This 
happens with the Single Bundle Distribution

java.lang.IllegalStateException: Invalid BundleContext.
        at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleCont
extImpl.java:393)
        at org.apache.felix.framework.BundleContextImpl.ungetService(BundleConte
xtImpl.java:362)
        at org.osgi.util.tracker.ServiceTracker.removedService(ServiceTracker.ja
va:429)
        at org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService$1.removedS
ervice(LocalDiscoveryService.java:133)
        at org.osgi.util.tracker.ServiceTracker$Tracked.untrack(ServiceTracker.j
ava:1126)
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTr
acker.java:957)
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListener
Callback(EventDispatcher.java:820)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(
EventDispatcher.java:678)
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(Even
tDispatcher.java:609)
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3640)
        at org.apache.felix.framework.Felix.access$200(Felix.java:38)
        at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:841)
        at org.apache.felix.framework.ServiceRegistry.fireServiceChanged(Service
Registry.java:568)
        at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceR
egistry.java:105)
        at org.apache.felix.framework.ServiceRegistrationImpl.unregister(Service
RegistrationImpl.java:118)
        at org.apache.felix.framework.ServiceRegistry.unregisterServices(Service
Registry.java:144)
        at org.apache.felix.framework.Felix._stopBundle(Felix.java:2105)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2034)
        at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:11
97)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:265
)
        at java.lang.Thread.run(Thread.java:595)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to