Question
Capgemini
SE
Last activity: 13 Feb 2017 22:18 EST
Email Listener not working
Hi, I have a email listener which is calling a service method. When I am running the service method stand alone it is working fine. But when I am starting the listener from SMA and send one mail, the listener could not able to run the service method or may be its not firing the service method. In the requestor I am not finding the listener request. I am not finding anything in the log file also. Need some help in this.
***Updated by moderator: Lochan to add Categories; add SR details***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Thanks Amit,
I have updated the original post above to reflect this information. On checking the resolution note of the SR, I see that using the pyAttachApprovalEmail activity accomplishes the task of attaching the email to a work object. I will mark this post as Answered with this solution.
Thanks!
Pegasystems Inc.
IN
Hello Amit ,
enable debug for the below email listener class which will give you more information on the email processing .
"com.pega.pegarules.integration.engine.internal.services.email.EmailListener" .
And also follow video which will explain how to further trace the listener
https://community.pega.com/video-library/support-guide-how-trace-listener
Let us know if you have any other questions .
Thanks,
Arun
Capgemini
SE
Hi Arun, thanks for your mail. I saw the video but I am not getting the Requester for JWRGAEmailListener(The listener I am working on). I changed the setting to debug and attaching the log file. It shows the below repetitive message. Does that mean that no email has been sent to the INBOX inspite that I am sending mail to this email account?
Hi Arun, thanks for your mail. I saw the video but I am not getting the Requester for JWRGAEmailListener(The listener I am working on). I changed the setting to debug and attaching the log file. It shows the below repetitive message. Does that mean that no email has been sent to the INBOX inspite that I am sending mail to this email account?
2017-02-06 01:16:21,791 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - Using existing requestor A0154A2A26E351A796DB13C041F1FAFD9
2017-02-06 01:16:21,801 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - attempt to lock Notify-PegaFSMMobile.INBOX : true
2017-02-06 01:16:21,821 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - emailReceive
2017-02-06 01:16:24,872 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - received : 0 new messages
2017-02-06 01:16:24,872 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - Received 0 emails.
2017-02-06 01:16:24,872 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - No emails to process.
2017-02-06 01:16:24,872 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - Processed[0/0] messages
2017-02-06 01:16:24,872 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - emailDisconnect
2017-02-06 01:16:25,052 [ EMAIL-Thread-181] [ STANDARD] [ ] [ ] ( services.email.EmailListener) DEBUG EMAIL.JWRGAEmailListener.Listener - Unlocked 1 locks.
Capgemini
SE
Email log attached
Pegasystems Inc.
IN
Hello Amit ,
From the logs we couldn't find any exception .
Can you please raise an SR one of our engineer will look into the issue ,looks like more investigation is required .
Thanks,
Arun
Updated: 9 Feb 2017 6:27 EST
Pegasystems Inc.
IN
Hi Amit,
Please let us know if you do log an SR for this and its ID. That way we can track it and follow-up this discussion with the resolution.
Thanks,
Capgemini
SE
Hi Lochana
An SR-B30831 is raised for this issue and the issue is fixed. Thanks
Accepted Solution
Pegasystems Inc.
IN
Thanks Amit,
I have updated the original post above to reflect this information. On checking the resolution note of the SR, I see that using the pyAttachApprovalEmail activity accomplishes the task of attaching the email to a work object. I will mark this post as Answered with this solution.
Thanks!