InvocationTargetException when using AccessControler.doPrivileged in a signed applet
问题 I'm having the following method in an applet which is called via JavaScript public String getAString() { Object rc = AccessController.doPrivileged( new java.security.PrivilegedAction() { public Object run() { try { return "OK"; } catch (Throwable t) { t.printStackTrace(); return "ERROR: " + t.getMessage() + " " + t.getCause(); } } }); // Return value return rc.toString(); } The applet is signed using a certificate created with keytool When I call getAString() if throws the