I was trying to take dialog values from AEM component and then map it to POJO class to retrieve data from POJO class but getting error:
org.apache.sling.api.slingexception: Cannot get DefaultSlingScript: No use provider could resolve identifier .......
Package and Class names that referred in HTL are case sensitive.
If your Use class fully qualified name is com.yourpackage.DemoUse then your HTL file should be like
You are referring as data-sly-use.demoUse="com.yourpackage.demoUse"
The issue could be with HTL data-sly-use statement. data-sly-use can only have Model/WCMUsePojo type
If you will just call POJO from htl, then it will not work.
Can you provide your POJO class?
If you are using Sling Model, use the correct annotations and give the DEFAULT strategy options.
If any one of the node/property is null / empty, you will see this error.