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

SA-2794

Summary



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] [                    ] (  services.email.EmailListener) DEBUG   -  emailConnect

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

2014-10-28 22:03:50,092 [n(778)                            ] [  STANDARD] [                    ] (  services.email.EmailListener) 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(IMAPFolder.java:1079)

                at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1055)

                at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailDisconnect(EmailListener.java:1637)

                at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.setup(EmailListener.java:955)

                at com.pega.pegarules.integration.engine.internal.services.listener.ListenerWrapper.launchListener(ListenerWrapper.java:139)

                at com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl.startOneListener(ListenerStateManagerImpl.java:713)

                at com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl.startListener(ListenerStateManagerImpl.java:618)

                at com.pega.pegarules.management.internal.ListenerManagementAPI.Start(ListenerManagementAPI.java:243)

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

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


Root Cause



Incorrect credentials used to connect to IMAP server inbox.

Resolution



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