Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-484

SingleServiceTracker NPE's when the service is lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3
    • Util
    • None

    Description

      ERROR: Error stopping bundle. (java.lang.IllegalStateException: Can
      only register services while bundle is active or activating.)
      java.lang.IllegalStateException: Can only register services while
      bundle is active or activating.
      at org.apache.felix.framework.Felix.registerService(Felix.java:2815)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)
      at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:229)
      at org.apache.aries.proxy.impl.ProxyManagerActivator.start(ProxyManagerActivator.java:52)
      at org.apache.aries.blueprint.uberbundle.UberActivator.stop(UberActivator.java:40)
      at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:655)
      at org.apache.felix.framework.Felix.stopBundle(Felix.java:2197)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1172)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
      at java.lang.Thread.run(Thread.java:680)
      ERROR: EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
      java.lang.NullPointerException
      at org.apache.aries.util.SingleServiceTracker.update(SingleServiceTracker.java:115)
      at org.apache.aries.util.SingleServiceTracker.findMatchingReference(SingleServiceTracker.java:106)
      at org.apache.aries.util.SingleServiceTracker.access$200(SingleServiceTracker.java:31)
      at org.apache.aries.util.SingleServiceTracker$1.serviceChanged(SingleServiceTracker.java:54)
      at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)
      at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
      at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
      at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3724)
      at org.apache.felix.framework.Felix.access$000(Felix.java:80)
      at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:717)
      at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:135)
      at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
      at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:178)
      at org.apache.felix.framework.Felix.stopBundle(Felix.java:2215)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1172)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
      at java.lang.Thread.run(Thread.java:680)

      Attachments

        Activity

          People

            not Alasdair Nottingham
            not Alasdair Nottingham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: