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 listeners unable to connect



Email listener on Pega does not start

Error Messages


Below is the DEBUG collected and the exception is thrown by the IMAP email server


2014-10-28 22:03:47,569 [n(778)                            ] [  STANDARD] [                    ] ( DEBUG   -  emailConnect

2014-10-28 22:03:47,569 [n(778)                            ] [  STANDARD] [                    ] ( DEBUG   -  Using IMAP over SSL

2014-10-28 22:03:50,092 [n(778)                            ] [  STANDARD] [                    ] ( DEBUG   -  emailDisconnect

2014-10-28 22:03:50,092 [n(778)                            ] [  STANDARD] [                    ] (tener.ListenerStateManagerImpl) ERROR   -  Unexpected exception.

java.lang.IllegalStateException: This operation is not allowed on a closed folder

                at com.sun.mail.imap.IMAPFolder.close(

                at com.sun.mail.imap.IMAPFolder.close(







                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(

Root Cause

Incorrect credentials used to connect to IMAP server inbox.


Reset and use the correct credentials to connect to IMAP inbound 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