java.security.AccessControlException error

0
Hi, I'm getting the following error: java.security.AccessControlException: access denied ("java.net.NetPermission" "setDefaultAuthenticator") What I'm trying to do is connect to a web service from java with authentication because the Mendix way doesn't work. When I disable cloud security, it works. But turning it back on gives me the above error. I've added this to the .policy file: grant { permission java.security.AllPermission; permission java.net.NetPermission "setDefaultAuthenticator"; }; Which I thought would grant me permissions to execute it. Is NetPermission not allowed at all when using cloud security? Or am I just missing something?
asked
0 answers