I already have an alternative.by using SlingHttpServletRequest request; request.getResourceResolver().getResource(location);But I believe I will run into that service method someday. Hope I will not get the error by then.Thanks!
Hello,I am getting the error your getting. may I know how did you resolve it?but I have a different approach.I am accessing "ResourceResolver resourceResolver = resolverFactory.getServiceResourceResolver(param);:in a PostConstruct init() class.