Unable to retrieve Resource from ResourceResolver | Community
Skip to main content
New Participant
July 25, 2018
Solved

Unable to retrieve Resource from ResourceResolver

  • July 25, 2018
  • 2 replies
  • 1136 views

Hi Guys,

I was trying to access a specific resource from my Servlet. Before that I created a system user, then added permission to that user to a specific node. But I think I did a mistake while configuring the user in system console User Mapper Service due to which I am unable to retrieve instance of Resource from ResourceResolver. Please find the screenshot for further info.

Thanks & regards

Tapasaranjan Samanta 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ratna_Kumar

Hi Tapass,

You have given wrong OSGI symbolic name. You are mapping sling model packages(as from your screenshot) in the mapper service.

You have to use correct symbolic name to make sure this work. For example below screenshot.

And bundle symbolic name can be found here under bundles.

Use the bundle symbolic name and that should work!!

Hope this helps!!

Thanks,

Ratna Kumar.

2 replies

Ratna_Kumar
Ratna_KumarAccepted solution
New Participant
July 26, 2018

Hi Tapass,

You have given wrong OSGI symbolic name. You are mapping sling model packages(as from your screenshot) in the mapper service.

You have to use correct symbolic name to make sure this work. For example below screenshot.

And bundle symbolic name can be found here under bundles.

Use the bundle symbolic name and that should work!!

Hope this helps!!

Thanks,

Ratna Kumar.

smacdonald2008
New Participant
July 25, 2018

Try clicking the top row and see if that makes a different. Also for you Sling mapping -  make sure that you are using the OSGi symbolic name. See this article for more details and a working example:

Adobe Experience Manager Help | Querying Adobe Experience Manager 6.4 JCR data

Hope this helps....