Domino & Notes error

java.security.AccessControlException: Access denied

Usually followed by the permission that was refused, for example (java.lang.RuntimePermission getClassLoader).

What it means

XPages or Java code on the server tried to do something the Java security policy does not allow.

Common causes

  • Code or a third-party library needs a permission such as reflection or file access
  • Java code in the database that is not trusted by the JVM security policy

Quick fixes

  1. Where possible, wrap the code in AccessController.doPrivileged inside a plug-in
  2. Grant the permission in a java.pol file next to java.policy in the JVM's security folder, which survives upgrades
  3. Back up the file first, then restart task http

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.