Highlighted

ResourceResolverFactory is NULL (Adobe Experience Manager AEM)

priyankam868659

21-06-2019

I am trying to get a reference to the ResourceResolver from the ResourceResolverFactory as follows:

Can someone please tell me what I am doing wrong? The Adobe ExperienceManager API version v6.0.

Replies

Highlighted

Jörg_Hoh

Employee

22-06-2019

This is happening if the reference is not injected. The most likely root cause is that this class is not a service, and thus the fields are not injected. Can you post the annotations at class level? How do you get access to an instance of this class?