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

Replies

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,112 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,112 likes

Total Posts

3,145 posts

Correct Reply

1,072 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

25-04-2019

typically you don't need the "bind*" methods at all, if you just want to have simple injection. But the problem in your case seems to be the "@VisibleForTesting" annotation, which makes this method visible for the scr plugin at buildtime, but hides it during runtime. Removing this annotation will likely make your problem go away, but it might have other impact.

Jörg

Avatar

Avatar
Validate 1
Level 2
kranthiv7238223
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Validate 1
Level 2
kranthiv7238223
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
kranthiv7238223
Level 2

25-04-2019

I still see  org.apache.sling.resourceresolver FrameworkEvent ERROR (java.lang.NullPointerException) in error.log file.

arunpatidar26

here is my Apache Sling Service User Mapper Service

com.xyz.help.content-engine-core-bundle:vulpe=vulpe

here vulpe is the system user

Avatar

Avatar
Validate 1
Level 2
kranthiv7238223
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Validate 1
Level 2
kranthiv7238223
Level 2

Likes

5 likes

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
kranthiv7238223
Level 2

25-04-2019

in my code, this statement is returning null , I mean I am not getting ResourceResolver object

resolverFactory.getServiceResourceResolver(param)