search cancel

Error "Unable to Read Source Object: Stream Size Limit Exceeded" Encountered When Using the Generate Security Hash Assertion


Article ID: 8791


Updated On:


STARTER PACK-7 CA Rapid App Security CA API Gateway


The following error may present itself in the SSG logs and/or audit events, when passing attachments through the Generate Security Hash Assertion: 

Unable to read source object: Stream size limit exceeded: 2097152 bytes. Exception caught!


Release: L7SGA299000-8.4-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU


The default convert to binary maximum stream size limit is 2097152 bytes. The limit has been exceeded.


For the Generate Security Hash assertion to handle larger attachments the following system property must be changed, with the example below being for 5MB in size:

  1. Locate and open the following file in a text editor: /opt/SecureSpan/Gateway/node/default/etc/conf/
  2. Add (or modify) the following line to read as follows:
  3. Save and exit the file, then stop and restart the Gateway ("SSG") service: service ssg restart