码迷,mamicode.com
首页 > 其他好文 > 详细

jira发送邮件报错

时间:2018-07-15 23:24:19      阅读:681      评论:0      收藏:0      [点我收藏+]

标签:puts   reads   ...   java   发送邮件   ssi   163邮箱   error   端口   

jira发送邮件的报错

1.安装完jira后,配置发送邮件出错具体报错如下:

An error has occurred with sending the test email:
com.atlassian.mail.MailException: javax.mail.MessagingException: Exception reading response;
  nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:225)
    at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:162)
    at com.atlassian.jira.plugins.mail.webwork.SendTestMail.doExecute(SendTestMail.java:107)
    at webwork.action.ActionSupport.execute(ActionSupport.java:165)
    at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
    at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:39)
    at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:31)
    at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
    at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
    at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:225)
.....
错误较多省略....
..... Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:124) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:92) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2349) ... 256 more

 2.排查方法

(1)网上搜索的解决办法中大部分都没有用,好多都是使用网易163邮箱做的配置,而我使用的邮箱是腾讯企业邮箱配置,测试一直发送不了,下面是第一个报错信息

AuthenticationFailedException: 535 Error: authentication failed

这个错误主要是我太粗心,没有配置发送的邮件密码,后面添加密码后这个错误解决。

(2)第二个报错信息

  不幸的是, 没有连接是可能的。审查以下错误并纠正:

  • SocketTimeoutException: Read timed out

这里主要是端口问题,为465,测试报错,截图如下:

技术分享图片

 

 在这里修改端口成功解决,端口号可以是25,也可以是587,就是465会报错。

 

jira发送邮件报错

标签:puts   reads   ...   java   发送邮件   ssi   163邮箱   error   端口   

原文地址:https://www.cnblogs.com/heyongboke/p/9307433.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!