Support Article

Email Listener throws errors after HotFix Installation

SA-28823

Summary



User receives an error from EmaiListener "BYE [UNAVAILABLE] Temporary System Error" with Pega 7.1.8.

Error Messages



2016-09-20 09:49:18,823 [.PRPCWorkManager : 0] [ STANDARD] [ ] [ PegaRULES:07.10] ( services.email.EmailListener) DEBUG EMAIL.KA.Listener server@company.com - attempt to lock Notify-KAInbox.INBOX : true

2016-09-20 09:49:18,837 [.PRPCWorkManager : 0] [ STANDARD] [ ] [ PegaRULES:07.10] ( services.email.EmailListener) DEBUG EMAIL.KA.Listener server@company.com - emailConnect

2016-09-20 09:49:24,443 [.PRPCWorkManager : 0] [ STANDARD] [ ] [ PegaRULES:07.10] ( services.email.EmailListener) ERROR EMAIL.KA.Listener server@company.com - Caught exception while connecting to email server(s)
javax.mail.MessagingException: * BYE [UNAVAILABLE] Temporary System Error;
nested exception is:
com.sun.mail.iap.ConnectionException: * BYE [UNAVAILABLE] Temporary System Error
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:723)
at javax.mail.Service.connect(Service.java:366)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailConnect(EmailListener.java:3209)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:2737)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:2610)
at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:453)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.processAsyncTask(AsyncServant.java:213)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.invoke(AsyncServant.java:167)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:315)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl$4.run(EngineImpl.java:268)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:265)
at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:367)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:408)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:223)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingException(AppServerBridgeToPega.java:245)
at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)
at com.pega.pegarules.internal.etier.interfaces.EJSLocalStatelessEngineBMT_f2439d86.invokeEngine(Unknown Source)
at com.pega.pegarules.session.internal.engineinterface.etier.mdb.PRAsync.processRequest(PRAsync.java:155)
at com.pega.pegarules.session.internal.engineinterface.etier.asynchbeans.AsyncTask.run(AsyncTask.java:64)
at com.pega.pegarules.session.internal.engineinterface.etier.asynchbeans.RunnableWrapper.run(RunnableWrapper.java:71)
at com.ibm.ws.asynchbeans.J2EEContext$RunProxy.run(J2EEContext.java:269)
at java.security.AccessController.doPrivileged(AccessController.java:229)
at com.ibm.ws.asynchbeans.J2EEContext.run(J2EEContext.java:795)
at com.ibm.ws.asynchbeans.WorkWithExecutionContextImpl.go(WorkWithExecutionContextImpl.java:222)
at com.ibm.ws.asynchbeans.ABWorkItemImpl.run(ABWorkItemImpl.java:206)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)

Caused by:
com.sun.mail.iap.ConnectionException: * BYE [UNAVAILABLE] Temporary System Error
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:401)
at com.sun.mail.imap.protocol.IMAPProtocol.handleLoginResult(IMAPProtocol.java:1011)
at com.sun.mail.imap.protocol.IMAPProtocol.authplain(IMAPProtocol.java:717)
at com.sun.mail.imap.IMAPStore.authenticate(IMAPStore.java:894)
at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:809)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:691)
... 30 more


Steps to Reproduce



The error shows up sporadically.


Root Cause



User connects to a Google mail mailbox account, the error message is specific to Google.

No documentation is available that explains the exact reason for that message, but it is clearly a problem on the server side. 


Resolution



Repeat getting the email or use another email provider.

 

Published October 5, 2016 - Updated October 27, 2016

Have a question? Get answers now.

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