Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Error java.net.UnknownHostException

  Asked By: Adella    Date: Apr 24    Category: Java    Views: 1753
  

I try to invoke a remote process via RMI from Sun Solaris SunOs5.7
with jdk 1.1.7 to another Solaris SunOs5.6 1.1.3 and obtain error

java.net.UnknownHostException

The way I configure the client:
AmtrixProcessInterface amtrixProcess = (AmtrixProcessInterface)
Naming.lookup("rmi://x/AmtrixProcessInterface");
x is a valid IP like 10.20.a.b

The way I configure my server
Naming.rebind("//x/AmtrixProcessInterface", new AmtrixProcess());

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Haru Tanaka     Answered On: Apr 24

First try to ping the m/c and check if the ping
command returns any value.

 
Answer #2    Answered By: Jacob Evans     Answered On: Apr 24

Yeah returns values...................

 
Answer #3    Answered By: Chaths Massri     Answered On: Apr 24

Can you confirm that the port is not the standard
port.

I am running my settings like this

Naming.rebind("//207.41.227.197:2002/RemoteManager",
oRemoteManager);

Here the port is a non standard port 2002 instead of
the default port..

 
Answer #4    Answered By: Tarron Thompson     Answered On: Apr 24

I'm using the standard port 1099. The port u choose is it arbitary. it work fine
if i run the program between NT platform
I will encounter problem if I try to NT ---> Solaris or Solaris --> Solaris

 
Answer #5    Answered By: Vid Fischer     Answered On: Apr 24

What does e.getMessage() print for when e =
java.net.UnknownHostException object

 
Answer #6    Answered By: Daniel Costa     Answered On: Apr 24

Is your RMI server component running?

 
Didn't find what you were looking for? Find more on Error java.net.UnknownHostException Or get search suggestion and latest updates.




Tagged: