Support Article
Email Listener fails with ArrayIndexOutOfBoundsException in logs
Summary
User was unable to receive an email due to the failure of the Email listener with ArrayIndexOutOfBoundsException.Error Messages
DEMO:01.01.01] ( services.email.EmailListener) ERROR EMAIL.YourServices.Listener|from([email protected])|sub(FW: Demo) [email protected] - Caught unexpected ArrayIndexOutOfBoundsException. Will attempt to mark mail as 'seen'.
java.lang.ArrayIndexOutOfBoundsException: message number (4) out of bounds (3)Steps to Reproduce
Send a mail to the specified email account configured the e-mail listener which throws the ArrayIndexOutOfBoundsException in the logs.Root Cause
Pega7.1.8 uses Java Mail 1.5.2 jar and this needs to be updated to Java Mail 1.5.3 jar where the reported issue has been fixed. Resolution
Provided Hfix-26153 which uses later version of Java Mail API jar which resolves the reported issue.
Published February 22, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.