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

java.lang.ClassCastException from email listener

SA-9410

Summary



The email listener is producing the following logfile error message:

(garules.services.EmailListener) ERROR from([email protected])|sub(PRESTATION) xxxxx - Caught unexpected exception. Will attempt to mark mail as 'seen'.;java.lang.ClassCastException: com.sun.mail.util.BASE64DecoderStream incompatible with java.lang.String;


Error Messages



2015-04-14 04:47:15,687 [ EMAIL-Thread-227] ( services.email.EmailListener) ERROR from([email protected])|sub(PRESTATION) xxxxx - Caught unexpected exception. Will attempt to mark mail as 'seen'.
java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream incompatible with java.lang.String
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.readDSNInformation(EmailListener.java:2424)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.readRequestHeaders(EmailListener.java:2285)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.extractMessageContent(EmailListener.java:2199)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleStandardRequest(EmailListener.java:1873)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.handleRequest(EmailListener.java:2020)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailProcess(EmailListener.java:1758)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:1191)
at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:1147)
at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:442)
at java.lang.Thread.run(Thread.java:772)


Steps to Reproduce



Run the email listener.

Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. 

Resolution



This issue is resolved by Hfix-21913.

Published July 7, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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