I am trying to create a Job in Scriptrunner using one the built-in scripts: Old Content Notifier.
An error appears when I am running the job manually:
Error: javax.mail.Provider: Provider com.sun.mail.imap.IMAPProvider not found
java.util.ServiceConfigurationError: javax.mail.Provider: Provider com.sun.mail.imap.IMAPProvider not found at com.atlassian.confluence.jmx.JmxSMTPMailServer.doSendWithMessageIdSupport(JmxSMTPMailServer.java:97) at com.atlassian.confluence.jmx.JmxSMTPMailServer.send(JmxSMTPMailServer.java:79) at com.atlassian.mail.server.SMTPMailServer$send$0.call(Unknown Source) at com.onresolve.scriptrunner.canned.confluence.jobs.TimedArchivalNotification.sendEmail(TimedArchivalNotification.groovy:227) at com.onresolve.scriptrunner.canned.confluence.jobs.TimedArchivalNotification$_execute_closure1.doCall(TimedArchivalNotification.groovy:161) at com.onresolve.scriptrunner.canned.confluence.jobs.TimedArchivalNotification$_execute_closure1.doCall(TimedArchivalNotification.groovy) at com.onresolve.scriptrunner.jobs.ConfluenceIdentitySwitchingService$_switchIndentityAndExecute_closure1.doCall(ConfluenceIdentitySwitchingService.groovy:30) at com.onresolve.scriptrunner.jobs.ConfluenceIdentitySwitchingService$_switchIndentityAndExecute_closure1.doCall(ConfluenceIdentitySwitchingService.groovy) at com.atlassian.confluence.user.AuthenticatedUserImpersonator$2.call(AuthenticatedUserImpersonator.java:118) at com.atlassian.confluence.user.AuthenticatedUserImpersonator$1.call(AuthenticatedUserImpersonator.java:101) at com.atlassian.confluence.user.AuthenticatedUserImpersonator.asUser(AuthenticatedUserImpersonator.java:82) at com.atlassian.confluence.user.AuthenticatedUserImpersonator$asUser.call(Unknown Source) at com.onresolve.scriptrunner.jobs.ConfluenceIdentitySwitchingService.switchIndentityAndExecute(ConfluenceIdentitySwitchingService.groovy:29) at com.onresolve.scriptrunner.jobs.IdentitySwitchingService$switchIndentityAndExecute.call(Unknown Source) at com.onresolve.scriptrunner.canned.confluence.jobs.TimedArchivalNotification.execute(TimedArchivalNotification.groovy:165) at com.onresolve.scriptrunner.canned.confluence.jobs.TimedArchivalNotification.execute(TimedArchivalNotification.groovy)
The configuration of the mail server is fine and there is no issue with the sending confluence sending mails. We are running on Confluence v7.2 and Scriptrunner v6.7
Any ideas on how to fix that?