Communication Error with Host and Remote Object
Hi,
I was executing my RMI program in a Linux Grid Network environment and the communication was no problem and the code did work.
However I have switched to the same code to another network with linux machines and when try to execute the code I get the Error:
java.rmi.ConnectIOException: Exception creating connection to: 136.186.14.96; nested exception is: java.net.NoRouteToHostException: No route to host
136.186.14.96 is the place where the registry is running and Server Object is bound
-----------------------------------------------------------------
Client Locate the Registry as below
LocateRegistry.getRegistry("136.186.14.96",1099);
ACTUAL CODE:
+//Pass The Remote Reference+
+try {+
oClient.registry = LocateRegistry.getRegistry(oClient.o_RegistryReference,oClient.i_Port);
oClient.server = (ART_Interface) oClient.registry.lookup("Server_Obj");
oClient.server.clientRegister(oClient.i_ClientID, oClient);
System.out.println("SEQUENCE <1> Client [" iID + "] Request to Register");+
+} catch (Exception e) {+
System.out.println("Client [" oClient.i_ClientID + "]Registration Error: " + e);+
+}+
-------------------------------------------------------------------
Client Code Execution....
+#ART_CLIENT <HOST> <PORT> <Client ID> <slavesPerClient>+
java -cp /home/research/mbcooray/network/mercury/GRID/ -Djava.rmi.server.codebase=file:/home/research/mbcooray/network/mercury/GRID/ -Djava.security.policy=/home/research/mbcooray/network/mercury/GRID/Policy.txt ART_Client 136.186.14.96 1099 0 1 &