Question
Unable to generate the Library for SendEmail Utility.
Hi Team,
Below mentioned Error occuring for Genaration Library and Function. Its happened post 7.3 upgrade. The same code working fine in PRPC 7.2.2
Library Error:
Error(s) detected while generating java. Compiler reported: ----------
1. ERROR in /com/pegarules/generated/test_ANZSendEmailMessage_010715_E_Ymt7WxOdEu_58bjhHXYg.java (at line 543)
SMIMEgen.addSigner((PrivateKey)certKey, (X509Certificate)myCert, org.bouncycastle.mail.smime.SMIMESignedGenerator.DIGEST_SHA1, new org.bouncycastle.asn1.cms.AttributeTable(signedAttrs), null);
^^^^^^^^^
The method addSigner(PrivateKey, X509Certificate, String, AttributeTable, null) is undefined for the type SMIMESignedGenerator
----------
2. ERROR in /com/pegarules/generated/test_ANZSendEmailMessage_010715_E_Ymt7WxOdEu_58bjhHXYg.java (at line 544)
SMIMEgen.addCertificatesAndCRLs(certsAndCRLs);
^^^^^^^^^^^^^^^^^^^^^^
The method addCertificatesAndCRLs(CertStore) is undefined for the type SMIMESignedGenerator
----------
3. ERROR in /com/pegarules/generated/test_ANZSendEmailMessage_010715_E_Ymt7WxOdEu_58bjhHXYg.java (at line 548)
multipart = SMIMEgen.generate(message, "BC");
^^^^^^^^
The method generate(MimeMessage) in the type SMIMESignedGenerator is not applicable for the arguments (MimeMessage, String)
----------
4. ERROR in /com/pegarules/generated/test_ANZSendEmailMessage_010715_E_Ymt7WxOdEu_58bjhHXYg.java (at line 580)
encrypter.addKeyTransRecipient((X509Certificate)(certChain2.get(i)));
^^^^^^^^^^^^^^^^^^^^
The method addKeyTransRecipient(X509Certificate) is undefined for the type SMIMEEnvelopedGenerator
----------
5. ERROR in /com/pegarules/generated/test_ANZSendEmailMessage_010715_E_Ymt7WxOdEu_58bjhHXYg.java (at line 585)
MimeBodyPart encryptedPart = encrypter.generate(message,
^^^^^^^^
The method generate(MimeMessage, OutputEncryptor) in the type SMIMEEnvelopedGenerator is not applicable for the arguments (MimeMessage, String, String)
----------
5 problems (5 errors)
Compile failed.
Library Name—
The Library failed to compile
Please help me on that.
Regards,
muthu
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Hi Muthu,
Can you try to clear the PEGA Cache temp folder and perform the restart of your JVM to test the behavior.
Regards
Mahesh