com.ms.security.SecurityExceptionEx

Exception Class com.ms.security.SecurityExceptionEx
Message [host] J/Direct method has not been authorized for use on behalf of an untrusted caller.
Possible Causes A J/Direct call was attempted from the init, start, stop, or destroy method of an applet. To make J/Direct calls during these methods, the applet must assert permissions even if the applet has been signed.
Possible Solutions Execute the following code to assert permissions:
import com.ms.security.*;
    ...
  PolicyEngine.assertPermission(PermissionID.SYSTEM);