Access Control Exception when Emulate cloud security is turned on

I have a Java action which works fine as long as cloud security is turned off. But when I turn on emulate cloud security, it raises this exception: Caused by: access denied (java.util.PropertyPermission org.apache.pdfbox.forceParsing read) at at at java.lang.SecurityManager.checkPermission( at java.lang.SecurityManager.checkPropertyAccess( at java.lang.System.getProperty( at java.lang.Boolean.getBoolean( at org.apache.pdfbox.pdfparser.BaseParser.<clinit>( at org.apache.pdfbox.pdmodel.PDDocument.load( at org.apache.pdfbox.pdmodel.PDDocument.load( The invoked method is: pddDocument = PDDocument.load(pdfInputStream); Anyone an idea on how to fix this?
1 answers

This library is attempting to get a property value which it is not allowed to do by default in the cloud. When you turn on emulate cloud security it will give you this exception. If you want to deploy this to the cloud you will have to request an exception to this rule. You can add an exception locally too in a similar way as explained in Or check