cannot be correctly instantiated by the Use API | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Umesh_Thakur
Umesh_ThakurAccepted solution
New Participant
Dec 12, 2022 7:35 AM UTC

Hi @mohit1, There are many reason due to which you User API can not instantiated. Like your Sling model is not using injection strategy as optional, Some exception or error in your post construct method, any issue in any services that you are using into you sling model.

You log says you are getting null pointer in CommonHelper.java at line#1105.

Once you correct this, this issue will get resolved.

Hope this helps.

Umesh Thakur

4 replies

Manu_Mathew_
New Participant
Dec 12, 2022 10:42 AM UTC

@mohit1 It seems to be related to the sling model you are using, debugging and clearing the exception should ideally solve the propblem.

Translate
Employee
Dec 12, 2022 9:37 AM UTC

hi @mohit1 ,

 

Can you share your model code , which can provide more insight to the issue.

 

Thanks,

Nikita Garg

Translate
Umesh_Thakur
Umesh_ThakurAccepted solution
New Participant
Dec 12, 2022 7:35 AM UTC

Hi @mohit1, There are many reason due to which you User API can not instantiated. Like your Sling model is not using injection strategy as optional, Some exception or error in your post construct method, any issue in any services that you are using into you sling model.

You log says you are getting null pointer in CommonHelper.java at line#1105.

Once you correct this, this issue will get resolved.

Hope this helps.

Umesh Thakur

Translate
Bhuwan_B
New Participant
Dec 12, 2022 7:24 AM UTC