Hi
In my component I have a page resource. When I am trying to get the image resource of the same as below it is throwing me an Illegal State exception
Resource resource = page.getContentResource(
My error stack trace is as follows
Eventhough i am not closing any resource ; it is giving me illegal state exception for the resource. Please help me in finding a solution for this.
Thanks
Veena
Are you calling the right path?
The call to page.getContentResource("image") will end up calling the following:
resource.getResourceResolver().getResource(resource, “jcr:content/image”);