0 Replies Latest reply on May 28, 2013 12:09 PM by 1011365

    Access Denied error while opening the deployed Application


      When I try to open my deployed application I get the following error:

      Im using the following code in my application:
      URL wsURL = new URL(wsLocation + "?command=login");

      So I went ahead and changed my code to this:
      java.net.URL wsURL = new URL(null, wsLocation + "?command=login",new sun.net.www.protocol.https.Handler());

      But I got the following error:
      access denied (java.lang.RuntimePermission accessClassInPackage.sun.net.www.protocol.https)

      Also I believe sun.* packages are not supported anymore on cloud. I think it might be because of this it failed the second time.
      Is there any workaround for this?