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 to start with IllegalStateException

SA-15736

Summary



An Email Account is configured, sender and receiver details are configured. Clicking the Test connectivity button reports a successful connection. However, when trying to start the listener through SMA, an error is thrown.


Error Messages



Listener 'Data-Admin-Connect-EmailListener:your_listener.Listener(com.pega.pegarules.integration.engine.internal.services.email.EmailListener)/0' failed to start because of the following error:
Failed to launch listener, java.lang.IllegalStateException: This operation is not allowed on a closed folder


A3 NO There is no replica for that mailbox on this server.


Steps to Reproduce



There is no specific use case to replicate this behavior.


Root Cause



An issue in the custom application code or rules. With debug enabled on 'com.pega.pegarules.integration.engine.internal.services.email.EmailListener', the application server log displays that the listener successfully connects and logs in to the email server, however, it also states there is no replica for the specified mailbox on the server.

Resolution



Perform the following local-change:

Correct the IP address specified for the host on the Email Account rule form which was pointing to the wrong email server. 

Published January 31, 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