Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689953000/5c736e12-b243-4e28-9fa1-456be3cf0c5d.jpg?itok=38IchoUK)
TATA Consultancy Services
TATA Consultancy Services
IN
TATA Consultancy Services
Posted: Sep 8, 2017
Last activity: Oct 16, 2018
Last activity: 16 Oct 2018 12:03 EDT
Closed
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.
Show More
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.
Show Less