org.osgi.framework.ServiceException: Service factory returned null.

GitHub | jhercher | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    geonames indexing

    stanbol-dev | 1 year ago | Pooja H Bavishi
    org.osgi.framework.ServiceException: Service factory returned null.
  2. 0

    Re: About Distributed OSGi greeter_rest demo

    cxf-users | 4 years ago | Tang Yong
    org.osgi.framework.ServiceException: CXF DOSGi: problem registering CXF >>>>>>>> HTTP Servlet >>>>>>>> Exception in thread "pool-1-thread-1" at >>>>>>>> org.apache.cxf.dosgi.dsw.handlers.HttpServiceManager.registerServletAndGetBus(HttpServiceManager.java:84) >>>>>>>> at >>>>>>>> org.apache.cxf.dosgi.dsw.handlers.JaxRSPojoConfigurationTypeHandler.createServer(JaxRSPojoConfigurationTypeHandler.java:123) >>>>>>>> at >>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:123) >>>>>>>> at >>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:70) >>>>>>>> at >>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64) >>>>>>>> at java.security.AccessController.doPrivileged(Native Method)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Re: About Distributed OSGi greeter_rest demo

    cxf-users | 4 years ago | Tang Yong
    org.osgi.framework.ServiceException: CXF DOSGi: problem registering CXF >>>>>>>>> HTTP Servlet >>>>>>>>> Exception in thread "pool-1-thread-1" at >>>>>>>>> org.apache.cxf.dosgi.dsw.handlers.HttpServiceManager.registerServletAndGetBus(HttpServiceManager.java:84) >>>>>>>>> at >>>>>>>>> org.apache.cxf.dosgi.dsw.handlers.JaxRSPojoConfigurationTypeHandler.createServer(JaxRSPojoConfigurationTypeHandler.java:123) >>>>>>>>> at >>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:123) >>>>>>>>> at >>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:70) >>>>>>>>> at >>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64) >>>>>>>>> at java.security.AccessController.doPrivileged(Native Method)
  5. 0

    Re: About Distributed OSGi greeter_rest demo

    cxf-users | 4 years ago | Tang Yong
    org.osgi.framework.ServiceException: CXF DOSGi: problem registering CXF >>>>>>>>>> HTTP Servlet >>>>>>>>>> Exception in thread "pool-1-thread-1" at >>>>>>>>>> org.apache.cxf.dosgi.dsw.handlers.HttpServiceManager.registerServletAndGetBus(HttpServiceManager.java:84) >>>>>>>>>> at >>>>>>>>>> org.apache.cxf.dosgi.dsw.handlers.JaxRSPojoConfigurationTypeHandler.createServer(JaxRSPojoConfigurationTypeHandler.java:123) >>>>>>>>>> at >>>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:123) >>>>>>>>>> at >>>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:70) >>>>>>>>>> at >>>>>>>>>> org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64) >>>>>>>>>> at java.security.AccessController.doPrivileged(Native Method)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.osgi.framework.ServiceException

      Service factory returned null.

      at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked()
    2. Apache Felix Framework
      ServiceRegistrationImpl$ServiceFactoryPrivileged.run
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:341)
      2. org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:35)
      3. org.apache.felix.framework.ServiceRegistrationImpl$ServiceFactoryPrivileged.run(ServiceRegistrationImpl.java:372)
      3 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Apache Felix Framework
      BundleContextImpl.getService
      1. org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:214)
      2. org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)
      3. org.apache.felix.framework.Felix.getService(Felix.java:3556)
      4. org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)
      4 frames
    5. org.apache.stanbol
      NameBasedServiceTrackingState.addingService
      1. org.apache.stanbol.enhancer.jersey.resource.EnhancementEnginesRootResource$1.addingService(EnhancementEnginesRootResource.java:113)
      2. org.apache.stanbol.enhancer.servicesapi.impl.NameBasedServiceTrackingState.addingService(NameBasedServiceTrackingState.java:161)
      2 frames
    6. OSGi
      ServiceTracker.open
      1. org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
      2. org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
      3. org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      4. org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
      5. org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)
      6. org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
      6 frames
    7. org.apache.stanbol
      EnhancementEnginesRootResource.activate
      1. org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker.open(EnginesTracker.java:212)
      2. org.apache.stanbol.enhancer.jersey.resource.EnhancementEnginesRootResource.activate(EnhancementEnginesRootResource.java:134)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    9. Apache Felix Declarative Services
      SingleComponentManager.getService
      1. org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)
      2. org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)
      3. org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)
      4. org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)
      5. org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)
      6. org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)
      7. org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)
      8. org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)
      9. org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)
      10. org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:777)
      10 frames
    10. Apache Felix Framework
      ServiceRegistrationImpl$ServiceFactoryPrivileged.run
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308)
      2. org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:35)
      3. org.apache.felix.framework.ServiceRegistrationImpl$ServiceFactoryPrivileged.run(ServiceRegistrationImpl.java:372)
      3 frames
    11. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    12. Apache Felix Framework
      BundleContextImpl.getService
      1. org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:214)
      2. org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)
      3. org.apache.felix.framework.Felix.getService(Felix.java:3556)
      4. org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)
      4 frames
    13. Apache Felix Declarative Services
      ServiceTracker$Tracked.serviceChanged
      1. org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:572)
      2. org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2012)
      3. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:328)
      4. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:304)
      5. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)
      6. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)
      7. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)
      8. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)
      9. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)
      9 frames
    14. Apache Felix Framework
      EventDispatcher$4.run
      1. org.apache.felix.framework.util.EventDispatcher$4.run(EventDispatcher.java:925)
      1 frame
    15. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    16. Apache Felix Framework
      BundleContextImpl.registerService
      1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:921)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4401)
      5. org.apache.felix.framework.Felix.registerService(Felix.java:3411)
      6. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      6 frames
    17. Apache Felix Declarative Services
      Activator$ScrExtension.start
      1. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1003)
      2. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:992)
      3. org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)
      4. org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1044)
      5. org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:841)
      6. org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)
      7. org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)
      8. org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)
      9. org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:120)
      10. org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)
      11. org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)
      12. org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)
      12 frames
    18. Apache Felix Bundle Repository
      AbstractExtender.modifiedBundle
      1. org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
      2. org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
      2 frames
    19. OSGi
      BundleTracker$Tracked.bundleChanged
      1. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)
      2. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)
      3. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
      4. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)
      4 frames
    20. Apache Felix Framework
      EventDispatcher$3.run
      1. org.apache.felix.framework.util.EventDispatcher$3.run(EventDispatcher.java:861)
      1 frame
    21. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    22. Apache Felix Framework
      FrameworkStartLevelImpl.run
      1. org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:858)
      2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
      3. org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
      4. org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4385)
      5. org.apache.felix.framework.Felix.startBundle(Felix.java:2080)
      6. org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1279)
      7. org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
      7 frames
    23. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame