Scheduled report is not send out due to java error

book

Article ID: 35024

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

Scheduled report is not send out due to java error

Example error snippet seen in scheduler logs

2012-08-01 04:46:06,006 ERROR [JobManagerImpl:219] Action failed: [email protected][id=17,started=true,success=false,startTime=Wed Aug 01 04:46:04 SGT 2012,endTime=<null>,length=<null>,errorMessage=Could not connect to SMTP host: localhost, port: 25,[email protected]0[id=16,[email protected], [email protected],subject=FERT Monthly,message=]]
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
  nested exception is:
 java.net.ConnectException: Connection refused: connect
 at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
 at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
 at javax.mail.Service.connect(Service.java:275)
 at javax.mail.Service.connect(Service.java:156)
 at javax.mail.Service.connect(Service.java:105)
 at javax.mail.Transport.send0(Transport.java:168)
 at javax.mail.Transport.send(Transport.java:98)
 at com.firehunter.reportscheduler.model.EmailAction._send(EmailAction.java:242)
 at com.firehunter.reportscheduler.model.EmailAction.send(Ema


 

Environment

Release: UIM 8.x

Resolution

Server Administration-> Mail section allows for secure connection option. If you are using TLS/SSL for mail server, you might be running it on a different port, if this is the case change to correct port.

Navigate to the bottom of Liferay’s Server Administration / Mail page where you will see this box:

          “Manually specify additional JavaMail properties to override the above configuration.”

Add the following in the box and save

            mail.smtp.starttls.enable=true