Sign in to Community
Sign in to view all badges
unable to get data from query.. showing error at SUBSERVICE,getServiceResourceResolver(param).
Code: Please excuse me as the code logic is in inchoate state. but this my java class and I am trying to call getCustomerData() method to query node.
And i also want to know whether this class can be used not as a service and still can it query the node?
attached java file as the code is too large to paste here [img]error.png[/img]
Yes.. so i define the "readService" in OSGI (Apache Sling User Mapper) and a user name who can access the service. In 6.1 "admin" does not have default access, you will have to create a "system user". I have more details on how i did this here: