org.osgi.framework.ServiceException: Exception in org.eclipse.equinox.internal.ds.ServiceReg.getService()

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Debugging Teamcenter Rich Client (eclipse rcp) fails with "org.osgi.service.component.ComponentException"

    Stack Overflow | 8 months ago | Federico Destefanis
    org.osgi.framework.ServiceException: Exception in org.eclipse.equinox.internal.ds.ServiceReg.getService()

    1 unregistered visitors

    Root Cause Analysis

    1. org.osgi.service.component.ComponentException

      The component was not built because some of its references could not be bound. The component is Component[ name = com.teamcenter.rac.aifrcp.RCPPortal activate = activate deactivate = deactivate modified = configuration-policy = optional factory = null autoenable = true immediate = false implementation = com.teamcenter.rac.aifrcp.RCPPortal state = Unsatisfied properties = serviceFactory = false serviceInterface = [com.teamcenter.rac.services.IPortalService] references = { Reference[name = ISessionService, interface = com.teamcenter.rac.services.ISessionService, policy = static, cardinality = 1..1, target = null, bind = setSessionService, unbind = null] } located in bundle = com.teamcenter.rac.aifrcp_9000.1.0 [594] ]

      at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build()
    2. org.eclipse.equinox
      ServiceReg.getService
      1. org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:342)
      2. org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:580)
      3. org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53)
      3 frames
    3. Eclipse OSGi
      ServiceUse$1.run
      1. org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:120)
      1 frame
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. Eclipse OSGi
      ServiceRegistry.getService
      1. org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:118)
      2. org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:447)
      3. org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:430)
      3 frames
    6. Eclipse OSGi
      BundleContextImpl.getService
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:667)
      1 frame
    7. com.teamcenter.rac
      Application.start
      1. com.teamcenter.rac.util.OSGIUtil.getService(Unknown Source)
      2. com.teamcenter.rac.util.OSGIUtil.getService(Unknown Source)
      3. com.teamcenter.rac.aifrcp.Application.runApplication(Unknown Source)
      4. com.teamcenter.rac.aifrcp.Application.start(Unknown Source)
      4 frames
    8. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    9. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1407)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1383)
      4 frames