Skip to Content
0
Jul 30, 2019 at 10:55 PM

Could not load com.sun.mail.smtp.SMTPTransport - Email Exceptions Hybris 6.0

216 Views

Hello Experts,

We are getting below issue in PRD system while sending the emails. This is a very serious issue, can anyone please suggest what can be wrong. When we update the system from HAC, the emails go for sometime, then the issue starts again. Please suggest.

SMTP settings are:

mail.smtp.server=mxsmtp.ackhfwfrkfernfrf.com mail.smtp.port=25 mail.smtp.debug=true mail.smtp.starttls.enable=true

INFO: Illegal access: this web application instance has been stopped already. Could not load com.sun.mail.smtp.SMTPTransport. The eventual following stack trace is caused by an error thrown for s no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at javax.mail.Session.getService(Session.java:767) at javax.mail.Session.getTransport(Session.java:720) at javax.mail.Session.getTransport(Session.java:660) at javax.mail.Session.getTransport(Session.java:640) at javax.mail.Session.getTransport(Session.java:697) at javax.mail.Transport.send0(Transport.java:192) at javax.mail.Transport.send(Transport.java:124) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232) at org.apache.commons.mail.Email.send(Email.java:1267) at de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.send(DefaultEmailService.java:296) at de.hybris.platform.acceleratorservices.process.email.actions.SendEmailAction.executeAction(SendEmailAction.java:49) at de.hybris.platform.processengine.action.AbstractProceduralAction.execute(AbstractProceduralAction.java:50) at de.hybris.platform.processengine.definition.ActionNode.execute(ActionNode.java:164) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$3(ProcessengineTaskRunner.java:176) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$8(ProcessengineTaskRunner.java:584) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTask(ProcessengineTaskRunner.java:178) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$2(ProcessengineTaskRunner.java:119) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$9(ProcessengineTaskRunner.java:557) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$7(ProcessengineTaskRunner.java:554) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.runProcessTaskInTransaction(ProcessengineTaskRunner.java:119) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$1(ProcessengineTaskRunner.java:109) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$6(ProcessengineTaskRunner.java:525) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.doRun(ProcessengineTaskRunner.java:109) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$0(ProcessengineTaskRunner.java:97) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.lambda$5(ProcessengineTaskRunner.java:499) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:97) at de.hybris.platform.processengine.process.ProcessengineTaskRunner.run(ProcessengineTaskRunner.java:1) at de.hybris.platform.processengine.task.impl.ProcessengineTaskExecutionStrategy.run(ProcessengineTaskExecutionStrategy.java:31) at de.hybris.platform.task.impl.DefaultTaskService.processTask(DefaultTaskService.java:1505) at de.hybris.platform.task.impl.DefaultTaskService.process(DefaultTaskService.java:1409) at de.hybris.platform.task.impl.DefaultTaskService.processInTenant(DefaultTaskService.java:1378) at de.hybris.platform.task.impl.DefaultTaskService$5.run(DefaultTaskService.java:1257) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

WARN [TaskExecutor-master-2598-ProcessTask [9361081172918]] [DefaultEmailService] Could not send e-mail pk [8824667904064] subject [Your Test Configuration ] cause: Sending the email to the following server failed : mxsmtp.ackhfwfrkfernfrf.com:25 INFO [TaskExecutor-master-2598-ProcessTask [9361081172918]] [ProcessengineTaskRunner] Reading task logs from C:\TestProdstorefront\hybris\temp\hybris\bpm_process_SaveYourTestEmailProcess-zig9 INFO [TaskExecutor-master-2600-ProcessTask [9361081205686]] [ProcessengineTaskRunner] Reading task logs from C:\TestProdstorefront\hybris\temp\hybris\bpm_process_SaveYourTestEmailProcess-zig9