Skip to Content
0
Jun 06, 2016 at 12:42 AM

System_Mail_Send job error

120 Views

Hello,

'System_Mail_Send' job is failing sometimes with the below error, but the emails are getting successfully sent. Please advise. We are using custom notification system.

-- JOB RUN STACK TRACE --

javax.mail.MessagingException: Exception reading response;

nested exception is:

java.net.SocketTimeoutException: Read timed out (local port XXXXX to address ::ffff:XX.XXX.X.XXX, remote port 25 to address ::ffff:XX.X.X.XX)

at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)

at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:698)

at javax.mail.Transport.send0(Transport.java:191)

at javax.mail.Transport.send(Transport.java:118)

at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:167)

at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:71)

at com.redwood.scheduler.infrastructure.mail.Mailer.sendMessage(Mailer.java:41)

at com.redwood.scheduler.system.jobs.SendMail.sendMessage(SendMail.java:191)

at com.redwood.scheduler.system.jobs.SendMail.execute(SendMail.java:151)

at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:253)

at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76)

at java.lang.Thread.run(Thread.java:763)

Caused by: java.net.SocketTimeoutException: Read timed out (local port XXXXX to address ::ffff:XX.XXX.X.XXX, remote port 25 to address ::ffff:XX.X.X.XX)

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)

at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)

... 11 more

Regards,

Tinku