Troubleshooting
Problem
Encountered the following error while reading the file referenced in the Groovy Evaluator script
SCRIPTING_04 - Script sent record to error: javax.xml.transform.TransformerConfigurationException: access denied ("java.io.FilePermission" “<file path>” "read")
Symptom
Unable to read the file from <file path>
Example Error :
com.streamsets.pipeline.api.base.OnRecordErrorException: SCRIPTING_04 - Script sent record to error: javax.xml.transform.TransformerConfigurationException: access denied ("java.io.FilePermission" "/resources/com/nomura/gdat/xmlredactor/UDWXslt.xslt" "read")
Cause
This error indicates a permission issue.
Resolving The Problem
In etc/sdc-security.policy file, add the below line which will grant all the required FilePermission.
NOTE : a wildcard (dash) "-" should be able to replace all the lower FilePermission statements.
grant codebase "file:/groovy/script" {
permission java.io.FilePermission “ <file path>/- “, "read,write";
};
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"","label":""},"Business Unit":{"code":"","label":""},"Product":{"code":"SSM7CU","label":"IBM StreamSets Data Collector"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
29 January 2025
UID
ibm17181571