Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Communication Error with Host and Remote Object

markcoorayOct 18 2010 — edited Nov 22 2010
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 &
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2010
Added on Oct 18 2010
17 comments
1,586 views