LinkedIn
Copied!

OPS0033: Email connection has timed out due to an exception

Pega Predictive Diagnostic Cloud™ (PDC) generates the OPS0033 event when an application cannot process inbound emails because of a com.sun.mail* exception.

Reason for the event

When an application tries to process inbound emails, but the connection times out because of an com.sun.mail* email listener exception, PDC generates an OPS0033 event and creates an EmailConnectionTimeout case. You can receive a notification for each occurrence of this event.

Example message text

Stack trace:
[MSG][Caught exception while connecting to email server(s)][STACK][com.pega.platform.integrationcore.client.email.EmailClientException: Unable to connect email client due to : ASTERISK BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out
 at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connect(JavaEmailClient.java:262)
 at com.pega.pegarules.integration.engine.internal.services.email.EmailPollerStrategyImpl.runOnce(EmailPollerStrategyImpl.java:146)
 at com.pega.pegarules.integration.engine.internal.services.email.EmailPollerStrategyImpl.run(EmailPollerStrategyImpl.java:107)
 at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:535)
 at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:454)
 at java.lang.Thread.run(Thread.java:748)
Caused by: javax.mail.MessagingException: ASTERISK BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out;
 nested exception is:
 com.sun.mail.iap.ConnectionException: ASTERISK BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out
 at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1064)
 at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:973)
 at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connectInbound(JavaEmailClient.java:327)
 at com.pega.platform.integrationcore.client.email.internal.javamail.JavaEmailClient.connect(JavaEmailClient.java:258)
 ... 5 more
Caused by: com.sun.mail.iap.ConnectionException: ASTERISK BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out
 at com.sun.mail.iap.Protocol.handleResult(Protocol.java:401)
 at com.sun.mail.imap.protocol.IMAPProtocol.select(IMAPProtocol.java:1184)
 at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1030)
 ... 8 more
]

Recommended next steps

To resolve email connection time-outs due to com.sun.mail* exceptions, contact your email administrator and your application support team. If you are a Pega Cloud® Services client, contact Pega Support.

Suggest Edit

Have a question? Get answers now.

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