Java Agent problems

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:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/ea5a5ae592deee2085256dd6002f0c81?OpenDocument

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.

Any help is greatly appreciated… Thanks in advance…

Subject: Java Agent problems

Try getting the Properties in a different way.//Use

Properties props = new Properties();

//instead of

Properties props = System.getProperties();

Domino security doesn’t allow for whatever reason “put” acces to system properties when they obtained via System.getProperties().

Subject: RE: Java Agent problems

Thanks… but still getting the same error…

Any other ideas…

Subject: RE: Java Agent problems

Please look at:http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/4b8a7d8d6c5ba6c68525700c0049da63?OpenDocument

  • Johan

johan@kanngard.net

http://dev.kanngard.net