Hi All,
I am getting null pointer when using @Reference annotation to get ResourceResolverFactory object in an OSGI service. Any pointers???
Code used:
@Service
@Component(immediate = true)
public class MyService{
@Reference
private ResourceResolverFactory resolverFactory;
}
Pom.xml:
maven-scr-plugin version is 1.20.0
org.apache.felix.scr.annotations version is 1.9.8
Thanks,
Kishore
Views
Replies
Total Likes
See if you can follow this article on a clean AEM instance to get it working.
You can also watch a video here:
Views
Replies
Total Likes