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 does not work as expected

SA-14505

Summary



Email listener runs on all the nodes. After checking the status in SMA, it is observed that the listener runs on only one node and is the the SLEEPING status on the rset of the nodes.
Even after restarting all the nodes, the listener moves back to SLEEPING status.


Error Messages



2015-09-01 04:54:32,234 [ EMAIL-Thread-5893] [ STANDARD] [PegaStratus:01.01.01] ( services.email.EmailListener) ERROR EMAIL.StratusInboundAlerts.Listener|from([email protected])|sub(Splunk: Cu) - Caught unexpected IOException. Will attempt to mark mail as 'seen'.
java.io.IOException
at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:119)
at com.sun.mail.handlers.text_plain.getContent(text_plain.java:95)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:775)
at javax.activation.DataHandler.getContent(DataHandler.java:522)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:652)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.readRequestDataPart(EmailListener.java:3955)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.readRequestDataPart(EmailListener.java:3947)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.readRequestData(EmailListener.java:3844)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.extractMessageContent(EmailListener.java:3362)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleStandardRequest(EmailListener.java:2997)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequestContents(EmailListener.java:3319)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequest(EmailListener.java:3208)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailProcess(EmailListener.java:2849)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:2301)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:2206)
at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:448)
at java.lang.Thread.run(Thread.java:662


Steps to Reproduce



Log in to the system. Navigate to SMA and check the status of the listener.


Root Cause



A defect or configuration issue in the operating environment. Latency period was set to 300 sec and processing time was set to 30 secs which is too high.

Resolution



1. Set the latency period to 30 secs and processing time to 300 secs.
2. Configure the below DSS setting.

DSS: email/initialLatencyTime
Purpose: Pega-IntegrationEngine
​Value set in seconds

Published October 5, 2015 - 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