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

Listener is inconsistent

SA-22235

 SUMMARY

User has configured an email listener and is frequently unable to connect to it.

All the emails to be processed are adding up to error count until restart. Once restarted, it picks up same records and processes them.

Error Messages



Error in logfile:

javax.mail.MessagingException: Connection timed out;
  nested exception is:
    java.net.ConnectException: Connection timed out
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
    at javax.mail.Service.connect(Service.java:288)
    at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailConnect(EmailListener.java:2701)
    at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:2312)
    at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:2227)
    at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:448)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
    at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)
    at com.sun.mail.iap.Protocol.<init>(Protocol.java:107)
    at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)


Steps to Reproduce



Not Applicable.


Root Cause



As there are frequent exceptions in the log file, after each exception latency of email listener is being increased based on a pre-defined logic, irrespective of what has been defined on the email listener rule form.

Resolution



Few DSS settings were applied, which were supposed to reduce the latency.

DSS: email/exceptionLatency and DSS: email/initialLatencyTime.

As user's issue persisted which is, sleep time was increasing, causing more latency post exception, the issue is resolved through
HFix-24902 . 
 

Published May 4, 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