error: no suitable method found for generate(javax.mail.internet.MimeBodyPart,OutputEncryptor) MimeBodyPart mp = generator.generate(msg, new JceCMSContentEncryptorBuilder(CMSAlgorithm.AES256_CBC)

0
Hi All,   After downloading the Email_Connector version 5.2.0 Module getting the following error and unable to run the mendix moduler, I have tried the lower versions of it as well but of no use can anyone help me out on this.   D:\Mendix\Vendor\javasource\secureemail\mail\EncryptionHelper.java:52: error: no suitable method found for generate(javax.mail.internet.MimeBodyPart,OutputEncryptor)      MimeBodyPart mp = generator.generate(msg, new JceCMSContentEncryptorBuilder(CMSAlgorithm.AES256_CBC)                                 ^    method SMIMEEnvelopedGenerator.generate(jakarta.mail.internet.MimeBodyPart,OutputEncryptor) is not applicable      (argument mismatch; javax.mail.internet.MimeBodyPart cannot be converted to jakarta.mail.internet.MimeBodyPart)    method SMIMEEnvelopedGenerator.generate(MimeMessage,OutputEncryptor) is not applicable      (argument mismatch; javax.mail.internet.MimeBodyPart cannot be converted to MimeMessage)D:\Mendix\Vendor Self Evaluation-main\javasource\secureemail\mail\SignatureHelper.java:82: error: no suitable method found for generate(javax.mail.internet.MimeMessage)    MimeMultipart multiPart = signGenerator.generate(message);                                           ^    method SMIMESignedGenerator.generate(MimeBodyPart) is not applicable      (argument mismatch; javax.mail.internet.MimeMessage cannot be converted to MimeBodyPart)    method SMIMESignedGenerator.generate(jakarta.mail.internet.MimeMessage) is not applicable      (argument mismatch; javax.mail.internet.MimeMessage cannot be converted to jakarta.mail.internet.MimeMessage)
asked
1 answers
0

1) did you check the prerequisites and compatibility of the module?

Might be there is a dependency with another module (eg encryption) in a specific version, so you need to download hat as well.

2) Do you have outdates jar files in your userlib directory?

If you add or update a module, it does not automatically remove outdates libraries. In StudioPro you can go to App | Show App Directory in Explorer. Go to the userlib directory and create a copy (eg store the copy on your desktop, a) for reference and b) if you make mistake you can go back). 

Then check in the userlib directory if you have "duplicate jar files", by this I mean two different versions of the same file (eg log4j-core-2.17.1.jar and log4j-core-2.17.2.jar). You can then remove the lowest version.

After removing all outdates files, in StudioPro you can select App | Clean Deployment Directory and App | Synchronize App Directory. Then run you app again.

 

answered