Email Template Module - java access denied error

0
I have the EmailTemplate module from the appstore in my app. I think I have followed all of the configurations correct. However, when I try to send an email, I get the following error: com.mendix.core.CoreRuntimeException: java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJSSE) at com.mendix.core.Core.execute(SourceFile:232) Caused by: java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJSSE) at hC.b(SourceFile:218) Caused by: access denied (java.security.SecurityPermission insertProvider.SunJSSE) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1698) at java.security.Security.check(Security.java:819) at java.security.Security.insertProviderAt(Security.java:324) at java.security.Security.addProvider(Security.java:372) at emailtemplate.mail.Sender.getEmailSession(Sender.java:285) at emailtemplate.mail.Sender.send(Sender.java:66) at emailtemplate.mail.EmailModule.mail(EmailModule.java:123) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:131) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:24) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hC.b(SourceFile:207) at com.mendix.core.Core.execute(SourceFile:226) at ll.a(SourceFile:69) at mv.a(SourceFile:72) at mu.a(SourceFile:151) at mu.executeAction(SourceFile:98) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hC.b(SourceFile:207) at com.mendix.core.Core.executeSync(SourceFile:203) at lm.a(SourceFile:60) at mv.a(SourceFile:72) at mu.a(SourceFile:151) at mu.executeAction(SourceFile:98) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hC.b(SourceFile:207) at com.mendix.core.Core.execute(SourceFile:226) at gn.execute(SourceFile:186) at jb.a(SourceFile:319) at com.mendix.externalinterface.connector.RequestDispatching$Worker.a(SourceFile:170) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.a(SourceFile:161) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.apply(SourceFile:160) at akka.actor.Actor$class.apply(Actor.scala:545) at com.mendix.externalinterface.connector.RequestDispatching$Worker.apply(SourceFile:156) at akka.actor.LocalActorRef.invoke(ActorRef.scala:910) at akka.dispatch.MessageInvocation.invoke(MessageHandling.scala:25) at akka.dispatch.ExecutableMailbox$class.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:223) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:123) at akka.dispatch.ExecutableMailbox$class.run(ExecutorBasedEventDrivenDispatcher.scala:195) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.run(ExecutorBasedEventDrivenDispatcher.scala:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at akka.dispatch.MonitorableThread.run(ThreadPoolBuilder.scala:192) What do I need to do to resolve this error so I can send email. Thanks, Mike
asked
2 answers
1

If you are deploying via the Platform Portal (the standard cloud), you should use localhost, port 25 as an SMTP server. This does not require SSL and should work fine out of the box.

answered
0

This issue is related to using classes from Sun's (Oracle) Java implementation which are not available in other java implementations (which are used in the standard cloud). Please file a support ticket for this one. You might mention ticket 15624 as well, which is related and describes some background about the issue.

answered