Skip to main content
Level 2
Oct 16, 2015 2:29 AM UTC
Solved

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

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.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

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

joerghoh
Adobe Employee
Adobe Employee
Oct 16, 2015 2:29 AM UTC

Hi,

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

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:29 AM UTC

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/

Translate
GK-007
Level 9
Oct 16, 2015 2:29 AM UTC

could you please post entire error/exception stack trace.

Translate