Support Article
Error invoking SendEmailMessage function
SA-22455
Summary
An error occurs when sending an email using the SendEmailMessage function.
Error Messages
Problem invoking function: pega_integrationengine_default.SendEmailMessage--(ClipboardPage)
java.lang.ClassNotFoundException: com.pegarules.generated.SendEmailMessage_071015_ai7uXdDX6AsHbgtRqmJ0uw
Steps to Reproduce
Run an activity or process that calls the SendEmailNotification activity.
Root Cause
An issue in the custom application code or rules.
The issue occurred because the pdfbox-app-2.0.0-RC1.jar file imported for custom functionality contained a different version of the org.bouncycastle.mail.smime.SMIMESignedGenerator class.
The methods used by the SendEmailMessage function were not in this version of the class. The methods referenced have been deprecated.
Resolution
Enhancement request FDBK-15108 has been submitted to review the SendEmailMessage function.
To continue using the code in the pdfbox-app-2.0.0-RC1.jar file, one option, is to create own library and version of the SendEmailMessage function.
One must update the function to call the appropriate methods provided in your version of the SMIMESignedGenerator class and then update the activities to call your version of the function.
In addition, to that remove the pdfbox-app-2.0.0-RC1.jar from the database and place it on the application server instead so that one can be certain of the class version is loaded.
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.