【问题标题】:How to fix the intermittent issue when dealing with spring integration?处理弹簧集成时如何解决间歇性问题?
【发布时间】:2017-10-31 19:26:25
【问题描述】:

我们正在使用 spring 集成来轮询来自 Outlook 框的电子邮件。

我们偶尔会看到这些异常。

Javax.mail.MessagingException: A4400 NO Server Unavailable javax.mail.MessagingException: A3 BAD 用户已通过身份验证但未连接。;

02:20:03.858 [task-scheduler-2] 错误 o.s.i.handler.LoggingHandler - org.springframework.messaging.MessagingException:轮询邮件时发生故障;嵌套异常是 javax.mail.MessagingException: A4400 NO Server Unavailabl e. 15; 嵌套异常是: com.sun.mail.iap.CommandFailedException:A4400 NO 服务器不可用。 15 在 org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:131) 在 org.springframework.integration.endpoint.SourcePollingChannelAdapter.receiveMessage(SourcePollingChannelAdapter.java:224) 在 org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:245) 在 org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:58)

02:20:05.321 [task-scheduler-2] 错误 o.s.i.handler.LoggingHandler - org.springframework.messaging.MessagingException:轮询邮件时发生故障;嵌套异常是 javax.mail.MessagingException: A3 BAD User is authenticated but not connected.; 嵌套异常是: com.sun.mail.iap.BadCommandException:A3 BAD 用户已通过身份验证但未连接。 :在 org.springframework.integration.mail.MailReceivingMessageSource.receive(MailReceivingMessageSource.java:131)

代码 sn-p:

@豆 公共集成流 imapIdleFlow() { 返回集成流 。从( Mail.imapInboundAdapter() .searchTermStrategy((f, l) ->) .javaMailProperties(p -> p .put("mail.debug", ) .put("mail.imap.connectionpoolsize", ))

当我为此浏览解决方案时,我没有得到解决方案。

【问题讨论】:

    标签: java spring spring-integration


    【解决方案1】:

    您没有提及您尝试连接的服务器,但我在 imap 和 outlook.office365.com 中遇到了“A3 BAD 用户已通过身份验证但未连接”错误。我尝试在 Outlook 中设置相同的帐户以确保它正常工作。虽然我能够添加帐户,但当我真正尝试查看收件箱时,Outlook 变得没有响应。因此,就我而言,一般来说,这是帐户的问题,而不是我尝试连接的方式。如果您愿意,我可以成功连接 pop3。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-06
      • 1970-01-01
      • 1970-01-01
      • 2011-12-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多