IBM Support

Encountered error processing emails from mail server. java.util.NoSuchElementException when configuring E-mail Listener with Oauth

Question & Answer


Question

What does it mean the error Encountered error processing emails from mail server. java.util.NoSuchElementException in log file when you configure email Listener with Oauth?
image-20230517155337-2

Answer

This error is related to misconfiguration when you follow the steps to configure email Listener with Oauth. There are some reasons that could lead to this error:
1. Bad refresh token. In order to solve this issue, follow strictly the steps mentioned in this technote and check the compatibility between credential values in Azure and script values:
 

Email Listener OAuth Configuration with Office 365 - Generating a Refresh Token

Note: After you run the script, an authentication window opens and it's required to use the listener account that was configured in Azure previously. Different account generates a bad refresh token. For more information, check the document:

Encountered error processing emails from mail server javax.mail.MessagingException: A3 BAD User is authenticated but not connected, when configuring email Listener with Oauth

2. Certificates not imported. In order to solve this issue, follow strictly the steps mentioned in this technote:
Note: Issues related to certificate are better visualized in SystemErr.log file.
3. Old Maximo version: The versions before 7.6.1.2 IFIX005 are not supported for Oauth configuration. For more information, check the document:

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"ARM Category":[{"code":"a8m50000000CbU1AAK","label":"System Administration-\u003EE-Mail Listeners"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6.1"}]

Document Information

Modified date:
29 May 2023

UID

ibm16995257