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

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.

 

Solution

  1. Install Java Security Policy files by following the below instructions:
    http://help.boomi.com/atomsphere/GUID-D7FA3445-6483-45C5-85AD-60CA5BB15719.html
  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.security.GroovyCodeSourcePermission "/groovy/script";
    permission java.io.FilePermission "/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

Attachments

    Outcomes