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.

Published December 22, 2016 - Updated June 16, 2017

Have a question? Get answers now.

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