Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

unable to get data from query.. showing error at SUBSERVICE,getServiceResourceResolver(param).

Avatar

Avatar
Validate 1
Level 1
harsha__
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
harsha__
Level 1

Likes

2 likes

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
harsha__
Level 1

15-10-2015

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]
View Entire Topic

Avatar

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
SurendraKonatha
Level 2

09-12-2015

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:

http://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throw...