Email Connector Issue.

0
Hi Everyone Greetings!   I'am facing an error while sending an mail, we are getting error in send email activity from email connector, it seems to be an .jar file conflicts.   Failed to send an email to: harish.hebballi.tpr@pwc.com an error occurred in the SendEmail java action : class com.sun.mail.handlers.text_html cannot be cast to class jakarta.activation.DataContentHandler (com.sun.mail.handlers.text_html and jakarta.activation.DataContentHandler are in unnamed module of loader com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1 @31bcf236) Stacktrace : com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.datahub.connector.email.utils.EmailConnectorException: EC0x043: Error while sending mails.    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108) Caused by:com.mendix.datahub.connector.email.utils.EmailConnectorException: EC0x043: Error while sending mails.    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108) Caused by:EC0x043: Error while sending mails.    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108) Caused by:EC0x043: Error while sending mails.    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108) Caused by:Failed to send email [ID: '<803309014.0.1721896249578@INPF377FBP.pwcglb.com>'], reason: Unknown error    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108) Caused by:class com.sun.mail.handlers.text_html cannot be cast to class jakarta.activation.DataContentHandler (com.sun.mail.handlers.text_html and jakarta.activation.DataContentHandler are in unnamed module of loader com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1 @31bcf236)    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108)   Any solutions for this?? Thanks in Advance!   Regards, Harish A Hebballi
asked
3 answers
0

Hi,

May be you removed "commons-email-1.5.jar.EmailTemplate." and not the actual JAR file "commons-email-1.5.jar".

As said earlier by Luc, the error seems to come from some conflicting classes present in your userlib JAR files.

regards,

Mahendra.

answered
0

Hi Harish,

 

I was also facing the same issues after upgrading Email template to Email Connector. So I Removed all the jar files related to email except  these" Email_Connector-1.0.0, Email_Connector-1.0.0.jar.Email_Connector, eventTrackingLibrary-1.0.2 ,eventTrackingLibrary-1.0.2.jar.Email_Connector" and it worked. 

 

answered
0

Make sure you have removed everything that has been marked as required by EmailTemplate and that isn't in use by any other module. If you have multiple copies of the same jar files, keep the versions with the highest revision number.

 

Good luck!

answered