我有一个 javamail 程序来定期阅读我的 pop3 帐户的电子邮件。它在大多数情况下都能连接并成功运行。但是,过了一会儿,我开始javax.mail.AuthenticationFailedException
接听电话,并且无法在以后的电话中连接它。当我关闭并启动我的程序时,它会使用相同的凭据再次成功连接。为了进一步分析,我启用了会话调试日志。以下是命令跟踪输出:
@2021-05-17 12:36:08.150 !DEBUG +OK The Microsoft Exchange POP3 service is ready. #27820545
@2021-05-17 12:36:08.150 !DEBUG CAPA #27820545
@2021-05-17 12:36:08.150 !DEBUG +OK #27820545
@2021-05-17 12:36:08.150 !DEBUG TOP #27820545
@2021-05-17 12:36:08.150 !DEBUG UIDL #27820545
@2021-05-17 12:36:08.150 !DEBUG SASL PLAIN #27820545
@2021-05-17 12:36:08.150 !DEBUG USER #27820545
@2021-05-17 12:36:08.150 !DEBUG STLS #27820545
@2021-05-17 12:36:08.150 !DEBUG . #27820545
@2021-05-17 12:36:08.150 !DEBUG DEBUG POP3: authentication command trace suppressed #27820545
@2021-05-17 12:36:50.341 !DEBUG DEBUG POP3: authentication command failed #27862736
@2021-05-17 12:36:50.342 !DEBUG QUIT #27862737
@2021-05-17 12:36:50.342 !DEBUG -ERR Protocol error. 19 #27862737
@2021-05-17 12:37:50.371 !DEBUG DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle] #27922766
@2021-05-17 12:37:50.371 !DEBUG DEBUG POP3: mail.pop3.rsetbeforequit: false #27922766
@2021-05-17 12:37:50.371 !DEBUG DEBUG POP3: mail.pop3.disabletop: false #27922766
这可能是什么原因?帐户服务提供商是 Microsoft Exchange。协议错误.19 表示什么?