Service object( @Reference private RenditionMaker renditionMaker;) is coming null when I try to include it in OSGi component | Community
Skip to main content
New Participant
October 16, 2015
Solved

Service object( @Reference private RenditionMaker renditionMaker;) is coming null when I try to include it in OSGi component

  • October 16, 2015
  • 3 replies
  • 1124 views

Service object( @Reference     private RenditionMaker renditionMaker;) is coming null when I try to include it in OSGi component, but working fine in OOTB CreateThumbnailProcess.java OSGi component. 

 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Try doing this.

1. delete the bundle. Restart your instance and install the bundle and see if it picks up the reference.

2. Try referencing the service without the annotation. refer [1] and see if it solves your problem

    [1] http://adobeaemclub.com/osgi-services-without-annotation/

3 replies

GK-007
New Participant
October 16, 2015

could you please post entire error/exception stack trace.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
October 16, 2015

Try doing this.

1. delete the bundle. Restart your instance and install the bundle and see if it picks up the reference.

2. Try referencing the service without the annotation. refer [1] and see if it solves your problem

    [1] http://adobeaemclub.com/osgi-services-without-annotation/

joerghoh
Employee
October 16, 2015

Hi,

can you post the relevant code (specially the defintion including the annotations) as well?