Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Email Listener fails with ArrayIndexOutOfBoundsException in logs



User was unable to receive an email due to the failure of the Email listener with ArrayIndexOutOfBoundsException.

Error Messages

DEMO:01.01.01] ( 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.


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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us