English

Error: java.security.AccessControlException: access denied (java.net.SocketPermission [hostname] resolve)

Error Message

Creating a connection to an ArcSDE server using an ArcSDE Java API applet application run inside a Web browser returns the following error:

"java.security.AccessControlException: access denied (java.net.SocketPermission [hostname] resolve)"

Cause

The operation is restricted by Java security specification for applets loaded over the network. An applet cannot make network connections except to the host that it came from.

Solution or Workaround

The ArcSDE Java API applet application and the ArcSDE Java API jar file must be deployed as Java extensions. Refer to the tutorial and documentation from Sun Microsystems on creating and deploying Java extensions in Related Information below.

    Related Information