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 is not picking up mail from the specified folder

SA-31764

Summary




Developer has configured Email listener on two nodes to monitor a particular folder. However they noticed that they are not working properly.


Error Messages



2016-10-27 15:59:53,828 [Tst07_SU2,maxpri=10]] [ STANDARD] [ ] ( services.email.EmailListener) DEBUG EMAIL. EmailListener. - attempt to lock r.INBOX : false
---------------------------------------
com.pega.pegarules.pub.database.DatabaseException: Database-General Error during acquireLock bean method call nested exception is: java.lang.RuntimeException: Problem during method invocation (acquireLock)
From: (unknown)
at com.pega.pegarules.data.internal.access.LockManagerImpl.acquireLock(LockManagerImpl.java:567)
at com.pega.pegarules.data.internal.access.LockManagerImpl.lock(LockManagerImpl.java:523)
at com.pega.pegarules.data.internal.access.LockManagerImpl.lock(LockManagerImpl.java:516)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.lockInboxInner(EmailListener.java:973)
at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)



Steps to Reproduce



Configure the email listener on multiple nodes and with multiple threads to monitor a particular folder.

Root Cause



A defect in Pegasystems’ code or rules:
  • Locking is not properly handled incase of multiple thread and multiple node scenario.
  • Latency value is not consistent.
  • Improper mapping ( milliseconds used instead of seconds) of parameter in establishRequestor2Inner() of EmailListener.java which is responsible for requestor deletion.



Resolution



Apply HFix-30737.
Suggest Edit

Published June 16, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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