RMI problem
From: Tim (nocomment_at_rogers.com)
Date: 11/22/03
- Previous message: Gasolinera: "java.net.ConnectException after remote IP address changes"
- Next in thread: Tim: "Re: RMI problem"
- Reply: Tim: "Re: RMI problem"
- Reply: Tim: "Re: RMI problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 Nov 2003 16:39:59 GMT
I've got a problem running an example RMI application that I copied from
a book. I have a Windows98 system with j2sdk1.4.1_06 installed.
The example contains a program that instantiates the remote object on
the remote machine. It contains the line:
System.setSecurityManager(new RMISecurityManager());
although it seems to actually be blowing up on the statement:
Naming.rebind(urlString, cmi);
Where cmi is the actual object it is going to instantiate.
When I run this program, I first start the rmiregistry with:
start rmiregistry
Then start the program with:
java CardBank <ip address> <port>
The program throws the error (it's a long error but the last line is)
access denied (java.net.SocketPermission 192.168.0.21:8080 connect,resolve)
Any ideas about what I forgot to install, set etc. would be welcomed.
Thanks
Tim
- Previous message: Gasolinera: "java.net.ConnectException after remote IP address changes"
- Next in thread: Tim: "Re: RMI problem"
- Reply: Tim: "Re: RMI problem"
- Reply: Tim: "Re: RMI problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|