have you exported the com.mycomp.node package?
It is already seen that the slingRequestObject is assigned to NULL thus an NPE.
I would do something like below:
private SlingRepository repository;
private Session adminSession;
I hope it will help.
adminSessions are considered harmfull and you should know what you do ... there is no access control in that session.
It is also one of the methods to get nodes from session. I want node in that way also. Thanks you for your response.