Replies

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

997

Correct Reply

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

997

Correct Reply

1.0K
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

kranthiv7238223

Avatar

kranthiv7238223

kranthiv7238223

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

kranthiv7238223

Avatar

kranthiv7238223

kranthiv7238223

25-04-2019

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

resolverFactory.getServiceResourceResolver(param)