Error: access denied ("java.lang.RuntimePermission" "getProtectionDomain") (in groovy script)

Document created by sheng_liao462475 Employee on Apr 11, 2017Last modified by chris_stevens on Apr 17, 2017
Version 2Show Document
  • View in full screen mode


Error executing data process; Caused by: access denied ("java.lang.RuntimePermission" "getProtectionDomain") (in groovy script)

This is often seen when the atom/molecule is on Java Version 1.8.0_121-b13.



  1. Install Java Security Policy files by following the below instructions:
  2. Navigate to atom server/molecule fileshare server <atom installation>/bin folder, copy and rename both procrunner-HIGH.policy file and the procworker-HIGH.policy file to procrunner-CUSTOM.policy and procworker-CUSTOM.policy.
  3. Add the below lines to both procrunner-CUSTOM.policy file and procworker-CUSTOM.policy file.
    Under Miscellaneous Other Permissions:
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission "/groovy/script";
    permission "/groovy/script", "read";
  4. Add the below property to Atom Management - Properties page and restart the atom afterwards:
    Property name: Security Policy property
    Property value: CUSTOM
    This configuration will tell the atom/molecule to use CUSTOM.policy file.
1 person found this helpful