Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Error java.net.UnknownHostException

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

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


The way I configure the client:
AmtrixProcessInterface amtrixProcess = (AmtrixProcessInterface)
x is a valid IP like 10.20.a.b

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



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

I am running my settings like this


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.