Scheduled Agent error: Exception:java.lang.SecurityException: not allowed to access system properties

Hello,

I am trying to run a scheduled java agent with the following code in it:

System.getProperties().put(“proxySet”, “true”);

System.getProperties().put(“proxyPort”, “8080”);

System.getProperties().put(“proxyHost”, “fwdproxy.fakename.com”);

When the server runs the agent, I get the following error in the server log:

AMgr: Agent (‘myagentname’ in ‘myfolder\my.nsf’) printing: Exception:java.lang.SecurityException: not allowed to access system properties

The server has Manager access in the database’s ACL

When I manually run the agent (Agent → Run), the agent runs fine.

What am I missing?