AccessControl or Bind exception with JAVA 7 onwards

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

You may run into Port Bind Exception or access control exception when running Applicare server with Derby on Java 7 onwards:

Reason and fix:

Java is using the default security model, and it uses a file java.policy in JRE_HOME/lib/security. By default ports used by Applicare, its database and others are not usable by JAVA. Edit this file and add the grants for those port bindings (default port used for Derby is 1527 and 8880 for Applicare)

grant
{
    permission java.net.SocketPermission "localhost:1527", "listen,resolve";
    permission java.net.SocketPermission "localhost:8880", "listen,resolve";
    permission java.net.SocketPermission "IP_Where_Applicare_Derby_is_Installed:1527", "listen,resolve";
    permission java.net.SocketPermission "IP_Where_Applicare_Controller_is_Installed:8880", "listen,resolve";

};

Restart the Applicare server after making the changes and these Exceptions should be resolved.

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support