C:\JavaCode>java org.kombat.client.RemoteHelloClient
Exception in thread "main" java.security.AccessControlException: access
denied (
java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
[...]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at
org.kombat.client.RemoteHelloClient.main(RemoteHelloClient.java:17)
Yes, my client *does* install an RMISecurityManager. Here's the key
part of my client's code:
System.setSecurityManager (new RMISecurityManager ());
RemoteHello obj = (RemoteHello) Naming.lookup
("rmi://localhost/RemoteHello");
System.out.println (obj.getMessage ());
Anyone have any tips or advice on why this might be happening, and
what I can do to fix it? All advice is appreciated, thanks.
Kevin.
Kevin.
Michael B. Allen
Kevin Swan wrote in message <39C97931...@ottawa.com>...