Email Error in Mx 5

1
I've just migrated the "EmailTemplate" module from Mx 4.7.1 --> Mx 5.0.0. All appears well, untill I send out an actual Email. I get this error. Has anybody encountered this issue as well? Thanks! Stacktrace: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider at emailtemplate.mail.EmailModule.mail(EmailModule.java:122) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:133) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:26) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.hq.execute(SourceFile:42) at com.mendix.if.a(SourceFile:44) at com.mendix.ie.a(SourceFile:190) at com.mendix.ie.executeAction(SourceFile:151) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.jt.a(SourceFile:135) at com.mendix.pF.a(SourceFile:296) at com.mendix.pF$a.apply$mcI$sp(SourceFile:195) at com.mendix.pF$i.a(SourceFile:211) at com.mendix.pF$i.execute(SourceFile:208) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:132) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider not found by project [85] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at emailtemplate.mail.EmailModule.mail(EmailModule.java:122) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:133) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:26) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.hq.execute(SourceFile:42) at com.mendix.if.a(SourceFile:44) at com.mendix.ie.a(SourceFile:190) at com.mendix.ie.executeAction(SourceFile:151) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:271) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:206) at com.mendix.core.component.InternalCore.execute(SourceFile:262) at com.mendix.jt.a(SourceFile:135) at com.mendix.pF.a(SourceFile:296) at com.mendix.pF$a.apply$mcI$sp(SourceFile:195) at com.mendix.pF$i.a(SourceFile:211) at com.mendix.pF$i.execute(SourceFile:208) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:132) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)
asked
2 answers
4

This module hasn't been updated for Mendix 5 yet. We don't expose the class com.sun.net.ssl.internal.ssl.Provider from our system bundle because it's not available when not running on a standard Oracle JVM. This app store module should include this itself. You can fix this for now by downloading the relevant jar from http://www.java2s.com/Code/Jar/c/Downloadcomsunnetssljar.htm and putting it in your userlibs folder.

answered
3

The email module was recently updated to support different jvm's, if you upgrade to that one first, but it is not available yet for Mendix 5. After you migrate to the new module while on Mendix 4, you should be able to migrate the entire project to mendix 5.

answered