RMIregistry - rebind : AccessControlException

Mehdi Blanchard (mblancha@capgemini.fr)
Tue, 6 Jul 1999 17:30:00 +0200

From: Mehdi Blanchard <mblancha@capgemini.fr>
To: "'java-security@java.sun.com'" <java-security@java.sun.com>
Subject: RMIregistry - rebind : AccessControlException
Date: Tue, 6 Jul 1999 17:30:00 +0200

Hello,

I try to run a simple RMI sample with the JDK1.1.5 in the DOS mode, without
any browser. My configuration is hereafter : - a single PC Windows NT -
JSDK WebServer 2.1 (port 8080) (I am not sure that I really need it)

I first run the rmiregistry.
Then, when the main() function of my application try to rebind my RMI
server class I always get the following error message :

An error occured java.security.AccessControlException: access denied
(java.net.SocketPermission127.0.0.1:1099 connect, resolve) at
java.security.AccessControlContext.checkPermission(Compiled Code) at
java.security.AccessController.checkPermission(Compiled Code) at
java.lang.SecurityManager.checkPermission(Compiled Code) at
java.lang.SecurityManager.checkConnect(SecurityManager.java:1006) at
java.net.Socket.<init>(Socket.java:258) at
java.net.Socket.<init>(Socket.java:98) at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
ketFactory.java:29) at sun.rmi.transport.proxy.RMIMasterSocketFactory.cr
eateSocket(Compiled Code) at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:462) at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:194) at
sun.rmi.transport.tcp.TCPChannel.newConnection(Compiled Code) at
sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306) at
sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at
java.rmi.Naming.rebind(Naming.java:165) at
duze.calcServ.main(calcServ.java:30)

Thank you for your help.

Kind Regards,
mehdi