Why does my applet get a java.security.AccessControlException: access denied (java.net.SocketPermission …), and how can I avoid it?

后端 未结 8 595
别那么骄傲
别那么骄傲 2020-12-03 16:59

We are clueless about why my client is encountering a Java Security exception in Safari. Could anyone help?

The exception occurs reliably in Safari on Windows. Thi

8条回答
  •  天涯浪人
    2020-12-03 17:38

    On Linux it works.

    The Add to cart button executes the function

      function saveLayout() {
    
        showSaveMsg();
        var status = document.app.buy();
        var loc = "http://www.cengraving.com/s/cart";
    
        if (status == 'GOOD') {
          window.location = getCartUrl();
        } else {
          showErrorMsg(status);
        }
      } 
    

    Some remarks:

    • Is it normal that the local var loc is defined after the app call and not used anyway?

    • Also, a try catch may help (in Javascript, wrapping the app.buy() call).

    • Besides, I did a bit of research on the Net, and some people - having the same error but from a different usage - report a ClassPath problem. Do you have anything specific that could prevent the relevant JRE to be utilized?

提交回复
热议问题