系统重装后,设置定时调度,一直失败。 运行失败信息如下: 邮件发送失败 com.fr.schedule.output.EmailException: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect at com.fr.schedule.output.EmailNotification.doFileAction(Unknown Source) at com.fr.schedule.output.EmailNotification.doFileAction(Unknown Source) at com.fr.fs.schedule.job.DoFileActionJob.doFileAction(Unknown Source) at com.fr.fs.schedule.job.ViewReportletJob.executeReportByUsername(Unknown Source) at com.fr.fs.schedule.job.ViewReportletJob.executeScheduledOutput(Unknown Source) at com.fr.fs.schedule.job.ViewReportletJob.executeReport(Unknown Source) at com.fr.fs.schedule.job.ReportletJob.execute(Unknown Source) at com.fr.third.org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.fr.third.org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: 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:1227) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322) at javax.mail.Service.connect(Service.java:236) at javax.mail.Service.connect(Service.java:137) at com.fr.base.EmailManager.connect(Unknown Source) at com.fr.base.EmailManager.send(Unknown Source) at com.fr.base.EmailManager.send(Unknown Source) ... 9 more |
最佳回答 |
||||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|
|||
0
|
|