Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6171

Webconsole OsgiManager throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: webconsole-4.3.14
    • Fix Version/s: webconsole-4.3.16
    • Component/s: Web Console
    • Labels:
      None

      Description

      I am running Felix in bridge mode and registered a servlet using System BundleContext but when I stop the server I get an NPE. It was working with 4.3.12.

      2019-08-20 15:18:27.314 [FelixLogListener] ERROR com.adeptj.modules.commons.logging.osgi.Logger - unbindHttpService: Failed unregistering Resources
      java.lang.NullPointerException: null
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager.unregisterHttpService(OsgiManager.java:1015)
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager.updateRegistrationState(OsgiManager.java:411)
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager.unbindHttpService(OsgiManager.java:1007)
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager$HttpServiceTracker.removedService(OsgiManager.java:914)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871)
      	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911)
      	at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
      	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
      	at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833)
      	at org.apache.felix.framework.Felix.access$000(Felix.java:112)
      	at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:434)
      	at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:170)
      	at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:145)
      	at org.apache.felix.http.base.internal.service.HttpServiceFactory.stop(HttpServiceFactory.java:111)
      	at org.apache.felix.http.base.internal.HttpServiceController.unregister(HttpServiceController.java:135)
      	at org.apache.felix.http.bridge.internal.BridgeActivator$1.destroy(BridgeActivator.java:71)
      	at com.adeptj.runtime.osgi.DispatcherServletWrapper.destroy(DispatcherServletWrapper.java:73)
      	at com.adeptj.runtime.osgi.DispatcherServletTracker.removedService(DispatcherServletTracker.java:83)
      	at com.adeptj.runtime.osgi.DispatcherServletTracker.removedService(DispatcherServletTracker.java:36)
      	at com.adeptj.runtime.osgi.BridgeServiceTracker.removedService(BridgeServiceTracker.java:82)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:871)
      	at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
      	at org.osgi.util.tracker.ServiceTracker.close(ServiceTracker.java:380)
      	at com.adeptj.runtime.osgi.ServiceTrackers.closeServiceTracker(ServiceTrackers.java:87)
      	at com.adeptj.runtime.osgi.ServiceTrackers.closeDispatcherServletTracker(ServiceTrackers.java:58)
      	at com.adeptj.runtime.osgi.FrameworkShutdownHandler.contextDestroyed(FrameworkShutdownHandler.java:50)
      	at io.undertow.servlet.core.ApplicationListeners.contextDestroyed(ApplicationListeners.java:202)
      	at io.undertow.servlet.core.DeploymentImpl.destroy(DeploymentImpl.java:291)
      	at io.undertow.servlet.core.DeploymentManagerImpl$4.call(DeploymentManagerImpl.java:676)
      	at io.undertow.servlet.core.DeploymentManagerImpl$4.call(DeploymentManagerImpl.java:666)
      	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
      	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	at io.undertow.servlet.core.DeploymentManagerImpl.undeploy(DeploymentManagerImpl.java:681)
      	at com.adeptj.runtime.server.Server.stop(Server.java:220)
      	at com.adeptj.runtime.common.ShutdownHook.run(ShutdownHook.java:42)
       

       

        Attachments

          Activity

            People

            • Assignee:
              bosschaert David Bosschaert
              Reporter:
              rakeshk15 Rakesh Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: