Policy Validation Fail On Message Size With Error "java.lang.RuntimeException: Permission denied. open failed"

(Doc ID 1667403.1)

Last updated on MAY 17, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.


An OAG policy has been defined for a SOAP request.

If the SOAP request is sent with an attachment that is less that 6MB, it is successful.
But if the SOAP request contains an attachment that greater than 6MB in size, it fails an error similar to the following:


The following has been set for the "message Size Validation" policy:
At least (bytes) : 0
At most (bytes) : 1048576

Testing SOAP request contains message of size:
Message size : 1M
Attachment size : 6M


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms