Application receives an access denied exception

An application configured to connect to the Gateway daemon using SSL is not able to read from the file system containing the keystore.

Symptom

An application receives a message similar to this:

java.io.IOException: CTG6651E: Unable to connect to the Gateway. 
                     [address = cicstgd2, port = 8050] 
                     [java.security.AccessControlException: access denied 
                     (java.io.FilePermission \jssekeys\testclient.jks read)] 

Probable cause

The application is running with Java™ security enabled and does not have permission to read from the file system containing the keystore.

Action

Add a FilePermission for the location of the keyring file. For more information, see Permissions to access the file system.