Email Access Control Exception: java.lang.RuntimePermission getClassLoader

0
Hi, We have recently converted our project from 5.0.0 to 5.1.1. When sending emails via the email tokens module, a cloud security issue occurs (both locally and on the cloud), which we did not have in version 5.0.0. The stacktrace is below. Does anyone have any idea on how to fix this? Error message access denied ("java.lang.RuntimePermission" "getClassLoader") Triggered in MF IVK_CreateAndSendEmail Stacktrace com.mendix.core.CoreRuntimeException: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getClassLoader") at com.mendix.core.component.InternalCore.execute(SourceFile:272) Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getClassLoader") at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:217) Caused by: access denied ("java.lang.RuntimePermission" "getClassLoader") at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) at java.security.AccessController.checkPermission(AccessController.java:559) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.ClassLoader.checkClassLoaderPermission(ClassLoader.java:1561) at java.lang.Thread.getContextClassLoader(Thread.java:1472) at emailtemplate.mail.EmailModule.mail(EmailModule.java:128) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:133) at emailtemplate.actions.SendEmail.executeAction(SendEmail.java:25) 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:260) at com.mendix.io.execute(SourceFile:42) at com.mendix.iX.a(SourceFile:47) at com.mendix.iW.a(SourceFile:191) at com.mendix.iW.executeAction(SourceFile:152) 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.executeSync(SourceFile:233) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SourceFile:33) at com.mendix.iX.a(SourceFile:47) at com.mendix.iW.a(SourceFile:191) at com.mendix.iW.executeAction(SourceFile:152) 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:260) at com.mendix.jw.a(SourceFile:135) at com.mendix.pG.a(SourceFile:296) at com.mendix.pG$a.apply$mcI$sp(SourceFile:195) at com.mendix.pG$i.a(SourceFile:211) at com.mendix.pG$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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
asked
1 answers
1

Hi Murat,

I think this one is related to this post.

answered