Thanks both. I've solved the issue. My careless mistake for adding an optional reference and invoking the service in the wrong way.Amended my code as follow:@Reference private MailService mailService; private SlingHttpServletRequest slingRequest; /** * For JSP call via sling.getService(EmailService....