wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes error: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "error: "java.rmi.NotBoundException: Server" ???" Watch "error: "java.rmi.NotBoundException: Server" ???" New topic
Author

error: "java.rmi.NotBoundException: Server" ???

ane silva
Greenhorn

Joined: Apr 18, 2005
Posts: 1
I am developing a applet for execute remote with RMI.
But when I try to execute the applet in the client it happens the following error=
"java.rmi.NotBoundException: Server"

my code client is:
public class ClientInterface extends UnicastRemoteObject implements RMI {
String contexto;
public ClientInterface()throws RemoteException{
super();
}
public static void main(String args[]) {
if(System.getSecurityManager() == null ){
System.setSecurityManager(new RMISecurityManager()); }
try {
ClientInterface obj = new ClientInterface();
Naming.rebind("//ip_do_servidor/Server",obj);
System.out.println("ServerInterface bound in registry");}
catch(Exception e){
System.out.println("Server err: "+ e.getMessage());
e.printStackTrace();}
}
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1121

Ane,
Looks to me like you have posted your server code (and not your "client code" as you have stated). You are associating the string "//ip_do_servidor/Server" with your server object. So the lookup string (that a client needs to use) will be:

where "host" is the name of the computer where the RMI server is running.

I have a feeling that perhaps you are having trouble understanding how RMI works. Allow me to recommend a series of tutorials on RMI that are available from the following Web page:

http://www.dickbaldwin.com/tocadv.htm

The RMI "lessons" start at lesson number 600.

Good Luck,
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error: "java.rmi.NotBoundException: Server" ???
 
Similar Threads
java.rmi.NotBoundException
threads in a distributed application
need help. I have problems running the client
RMI problem
NX: RMI and Mutlithreading