org.osgi.framework.ServiceException: Service factory exception: Can't create RequestFactory for non OsgiPlugin

Atlassian JIRA | Felipe Cuozzo | 6 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

    The RequestFactory cannot be created using com.atlassian.jira.ComponentManager.getOSGiComponentInstanceOfType(ComponentManager.java:503). Probably related to the bug on Atlassian Rest Module - issue key: REST-161 osgi.container.felix.FelixOsgiContainerManager Framework error in bundle com.atlassian.plugins.rest.atlassian-rest-module org.osgi.framework.ServiceException: Service factory exception: Can't create RequestFactory for non OsgiPlugin at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:294) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273) at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:430) at com.atlassian.jira.ComponentManager.getServiceTracker(ComponentManager.java:527) at com.atlassian.jira.ComponentManager.getOSGiComponentInstanceOfType(ComponentManager.java:503) at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.<init>(ApplinksBambooAjaxRequest.java:34) at com.atlassian.jira.plugin.ext.bamboo.request.BambooRequestFactoryImpl.create(BambooRequestFactoryImpl.java:19) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromUrl(BambooServerAccessorImpl.java:95) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromAction(BambooServerAccessorImpl.java:88) at com.atlassian.jira.plugin.ext.bamboo.web.ViewBambooPanelContent.doExecute(ViewBambooPanelContent.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:165) Caused by: java.lang.IllegalStateException: Can't create RequestFactory for non OsgiPlugin at com.atlassian.plugins.rest.module.jersey.JerseyRequestFactoryServiceFactory.getService(JerseyRequestFactoryServiceFactory.java:37) at org.springframework.osgi.service.exporter.support.internal.support.PublishingServiceFactory.getService(PublishingServiceFactory.java:105) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306) java.lang.NullPointerException at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.getRequest(ApplinksBambooAjaxRequest.java:56) at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.execute(ApplinksBambooAjaxRequest.java:86) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromUrl(BambooServerAccessorImpl.java:113) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromAction(BambooServerAccessorImpl.java:88) at com.atlassian.jira.plugin.ext.bamboo.web.ViewBambooPanelContent.doExecute(ViewBambooPanelContent.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:165)

    Atlassian JIRA | 6 years ago | Felipe Cuozzo
    org.osgi.framework.ServiceException: Service factory exception: Can't create RequestFactory for non OsgiPlugin
  2. 0

    The RequestFactory cannot be created using com.atlassian.jira.ComponentManager.getOSGiComponentInstanceOfType(ComponentManager.java:503). Probably related to the bug on Atlassian Rest Module - issue key: REST-161 osgi.container.felix.FelixOsgiContainerManager Framework error in bundle com.atlassian.plugins.rest.atlassian-rest-module org.osgi.framework.ServiceException: Service factory exception: Can't create RequestFactory for non OsgiPlugin at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:294) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273) at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:430) at com.atlassian.jira.ComponentManager.getServiceTracker(ComponentManager.java:527) at com.atlassian.jira.ComponentManager.getOSGiComponentInstanceOfType(ComponentManager.java:503) at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.<init>(ApplinksBambooAjaxRequest.java:34) at com.atlassian.jira.plugin.ext.bamboo.request.BambooRequestFactoryImpl.create(BambooRequestFactoryImpl.java:19) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromUrl(BambooServerAccessorImpl.java:95) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromAction(BambooServerAccessorImpl.java:88) at com.atlassian.jira.plugin.ext.bamboo.web.ViewBambooPanelContent.doExecute(ViewBambooPanelContent.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:165) Caused by: java.lang.IllegalStateException: Can't create RequestFactory for non OsgiPlugin at com.atlassian.plugins.rest.module.jersey.JerseyRequestFactoryServiceFactory.getService(JerseyRequestFactoryServiceFactory.java:37) at org.springframework.osgi.service.exporter.support.internal.support.PublishingServiceFactory.getService(PublishingServiceFactory.java:105) at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306) java.lang.NullPointerException at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.getRequest(ApplinksBambooAjaxRequest.java:56) at com.atlassian.jira.plugin.ext.bamboo.request.ApplinksBambooAjaxRequest.execute(ApplinksBambooAjaxRequest.java:86) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromUrl(BambooServerAccessorImpl.java:113) at com.atlassian.jira.plugin.ext.bamboo.service.BambooServerAccessorImpl.getHtmlFromAction(BambooServerAccessorImpl.java:88) at com.atlassian.jira.plugin.ext.bamboo.web.ViewBambooPanelContent.doExecute(ViewBambooPanelContent.java:107) at webwork.action.ActionSupport.execute(ActionSupport.java:165)

    Atlassian JIRA | 6 years ago | Felipe Cuozzo
    org.osgi.framework.ServiceException: Service factory exception: Can't create RequestFactory for non OsgiPlugin

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Can't create RequestFactory for non OsgiPlugin

      at com.atlassian.plugins.rest.module.jersey.JerseyRequestFactoryServiceFactory.getService()
    2. com.atlassian.plugins
      JerseyRequestFactoryServiceFactory.getService
      1. com.atlassian.plugins.rest.module.jersey.JerseyRequestFactoryServiceFactory.getService(JerseyRequestFactoryServiceFactory.java:37)
      1 frame
    3. Spring OSGi Core
      PublishingServiceFactory.getService
      1. org.springframework.osgi.service.exporter.support.internal.support.PublishingServiceFactory.getService(PublishingServiceFactory.java:105)
      1 frame
    4. Apache Felix Framework
      ServiceRegistrationImpl.getFactoryUnchecked
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306)
      1 frame