​​The Cambridge Crystallographic Data Centre (CCDC).
The CCDC websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our  cookie policy.

Why does the Jmol visualiser give an 'access denied' error when I try to view WebCSD structures?

Solution

Note: The following information applies only to WebCSD version 1 (legacy WebCSD).

If you get an error message similar to:

access denied (java.net.SocketPermission 127.0.0.1:8081 connect,resolve)

at the top of the Jmol display window and no molecule appears, you may need to update your Java security policy to allow connections to the WebCSD server.

To do this, you will need to edit the java.policy file that your local computer is using - this will probably be in the lib/security subdirectory of your Java runtime installation. In the java.policy file, add a line like this:

permission java.net.SocketPermission "127.0.0.1:8081", "connect, resolve";

(or whatever address is used to connect to your WebCSD server) in the grant section. If this does not work, you can also try adding:

Permission java.security.AllPermission;

in the grant section, but this disables the Java security mechanism and should ideally be avoided.