定时任务邮件经常会无故失败




我定时任务邮件经常会有发送失败,但是大部分会成功,不知道是什么原因
报错信息如下:



邮件发送失败
file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.schedule.output.EmailException: javax.mail.MessagingException: Unknown SMTP host: [img]file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]SMTP.exmail.qq.com;
nested exception is:
    file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.UnknownHostException: [img]file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]SMTP.exmail.qq.com
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.schedule.output.EmailNotification.doFileAction(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.schedule.output.EmailNotification.doFileAction(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.fs.schedule.job.DoFileActionJob.doFileAction(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.fs.schedule.job.ViewReportletJob.executeReportByUsername(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.fs.schedule.job.ViewReportletJob.executeScheduledOutput(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.fs.schedule.job.ViewReportletJob.executeReport(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.fs.schedule.job.ReportletJob.execute(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.third.org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.third.org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: javax.mail.MessagingException: Unknown SMTP host: [img]file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]SMTP.exmail.qq.com;
nested exception is:
    file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.UnknownHostException: [img]file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]SMTP.exmail.qq.com
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1389)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
    at javax.mail.Service.connect(Service.java:288)
    at javax.mail.Service.connect(Service.java:169)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.base.EmailManager.connect(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.base.EmailManager.send(Unknown Source)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngcom.fr.base.EmailManager.send(Unknown Source)
    ... 9 more
Caused by: file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.UnknownHostException: [img]file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\[5UQ[BL(6~BS2JV6W}N6[%S.png[/img]SMTP.exmail.qq.com
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.Socket.connect(Socket.java:589)
    at file:///C:\Users\ADMINI~1.IVO\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pngjava.net.Socket.connect(Socket.java:538)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
    ... 15 more


FineReportyanfeng_0713 发布于 2017-3-8 11:41
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共7回答
最佳回答
0
我行我素发布于2017-3-8 11:41(编辑于 2023-9-6 09:34)
555
  • yanfeng_0713 yanfeng_0713(提问者)

    ping是正常的,刚问技术支持,说可能是JAR包问题,我先更新试试看
    回复
    2017-03-08 13:52 
最佳回答
0
我行我素发布于2017-3-8 13:36(编辑于 2023-9-6 09:34)
555
  • yanfeng_0713 yanfeng_0713(提问者)

    服务器正常,刚装了没多久,这种情况只是偶尔会出现,大多时候都是正常的
    回复
    2017-03-08 13:42 
最佳回答
0
yanfeng_0713发布于2017-3-8 13:42(编辑于 2023-9-6 09:34)
555
最佳回答
0
我行我素发布于2017-3-8 13:43(编辑于 2023-9-6 09:34)
555
最佳回答
0
yanfeng_0713发布于2017-3-8 13:52(编辑于 2023-9-6 09:34)
555
  • 我行我素 我行我素

    对啊,ping正常也有可能邮件发不出去,可能稳定性没保证
    回复
    2017-03-08 13:57 
最佳回答
0
我行我素发布于2017-3-8 13:57(编辑于 2023-9-6 09:34)
555
最佳回答
0
yanfeng_0713发布于2017-3-31 11:44(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 1450浏览人数
  • 最后回答于:2017-3-31 11:44
    活动推荐 更多
    热门课程 更多
    返回顶部