org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null.

Spring JIRA | Alan Stewart | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When starting the Roo shell the following error occurred. It has happened just once to date. stewarta@stewarta:~/projects/roo-test/vote$ roo.sh 01/09/2010 4:10:47 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.addon.op4j [30]] [org.springframework.roo.addon.op4j.Op4jMetadataProvider] Cannot create component instance due to failure to bind reference metadataService 01/09/2010 4:10:47 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.addon.op4j [30]] FrameworkEvent ERROR org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null. at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:338) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761) at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003) at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436) at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212) at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38) at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542) at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500) at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991) at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManage at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118) at org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:91) at org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1139) at org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:85) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761) at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003) at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436) at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212) at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38) at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542) at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500) at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991) at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManager.java:907) at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118) at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:991) at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:298) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.doRun(AbstractComponentManager.java:505) at org.apache.felix.scr.impl.ComponentActivatorTask.run(ComponentActivatorTask.java:67) at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:96) at java.lang.Thread.run(Thread.java:619)

    Spring JIRA | 6 years ago | Alan Stewart
    org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null.
  2. 0

    When starting the Roo shell the following error occurred. It has happened just once to date. stewarta@stewarta:~/projects/roo-test/vote$ roo.sh 01/09/2010 4:10:47 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.addon.op4j [30]] [org.springframework.roo.addon.op4j.Op4jMetadataProvider] Cannot create component instance due to failure to bind reference metadataService 01/09/2010 4:10:47 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.addon.op4j [30]] FrameworkEvent ERROR org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null. at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:338) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761) at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003) at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436) at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212) at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38) at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542) at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500) at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991) at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManage at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118) at org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:91) at org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1139) at org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:85) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:761) at org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1003) at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:436) at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:212) at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38) at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:542) at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:500) at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:434) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:991) at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManager.java:907) at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:831) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118) at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:991) at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:298) at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.doRun(AbstractComponentManager.java:505) at org.apache.felix.scr.impl.ComponentActivatorTask.run(ComponentActivatorTask.java:67) at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:96) at java.lang.Thread.run(Thread.java:619)

    Spring JIRA | 6 years ago | Alan Stewart
    org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null.

    Root Cause Analysis

    1. org.apache.felix.log.LogException

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

      at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked()
    2. Apache Felix Framework
      Felix.getService
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:338)
      2. org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      3. org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      4. org.apache.felix.framework.Felix.getService(Felix.java:2913)
      4 frames