Question
European Investment Bank
NL
Last activity: 12 May 2017 10:46 EDT
Email Listener (Pega 7.1.7) MessagingException when obtaining subject
I configured Email listener on Pega than started it successfully. But after I send an email to inbox that I listen. It throws an exception below. But When I set log level for email listener to debug level it works correctly. Do you have any idea ?
Regards,
[4/6/17 16:46:36:021 EET] 000000bd SystemOut O 2017-04-06 16:46:36,020 [RPCWorkManager : 149] [ STANDARD] [ PegaRULES:07.10] (mail.EmailListener$MessageInfo) ERROR EMAIL.CommonFaxListener.Listener yourname - Caught MessagingException when obtaining subject. Message from youremailaddress
javax.mail.MessagingException: A8 BAD Command Argument Error. 11;
nested exception is:
com.sun.mail.iap.BadCommandException: A8 BAD Command Argument Error. 11
at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:737)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener$MessageInfo.processSubject(EmailListener.java:786)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener$MessageInfo.<init>(EmailListener.java:731)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequest(EmailListener.java:3143)
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)
I configured Email listener on Pega than started it successfully. But after I send an email to inbox that I listen. It throws an exception below. But When I set log level for email listener to debug level it works correctly. Do you have any idea ?
Regards,
[4/6/17 16:46:36:021 EET] 000000bd SystemOut O 2017-04-06 16:46:36,020 [RPCWorkManager : 149] [ STANDARD] [ PegaRULES:07.10] (mail.EmailListener$MessageInfo) ERROR EMAIL.CommonFaxListener.Listener yourname - Caught MessagingException when obtaining subject. Message from youremailaddress
javax.mail.MessagingException: A8 BAD Command Argument Error. 11;
nested exception is:
com.sun.mail.iap.BadCommandException: A8 BAD Command Argument Error. 11
at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:737)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener$MessageInfo.processSubject(EmailListener.java:786)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener$MessageInfo.<init>(EmailListener.java:731)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequest(EmailListener.java:3143)
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 com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.processAsyncTask(AsyncServant.java:212)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.invoke(AsyncServant.java:166)
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.invokeEngine(EngineImpl.java:263)
at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)
at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
***Updated by moderator: Lochan to remove proprietary information; add SR Created group tag***