I am trying to run a scheduled Java agent that uses the com.sun.net.ssl.HttpsURLConnection.
I have configured the server as recommended in this listing:
However, I still get the following errors when I call the line:
System.setProperty "java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
java.security.AccessControlException: access denied (java.util.PropertyPermission java.protocol.handler.pkgs write)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:286)
java.security.AccessController.checkPermission(AccessController.java:413)
java.lang.SecurityManager.checkPermission(SecurityManager.java:565)
message: at java.lang.System.setProperty(System.java:682)
I wanted to see if anyone else has had a similar problem and if they were able to resolve it.
I have also tried using:
System.getProperties().put(“java.protocol.handler.pkgs”, “com.sun.net.ssl.internal.www.protocol”);
Instead of the System.setProperty and this also gives an error. I have tried signing the agent with a server id and still get the same errors.
I can also successfully run the agent manually from my client. The agent security level is set to 3.
Thank you