java.rmi.UnknownHostException while running a sample<br>!_NEWLINE_!implementation of RMI with SSL
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, September 27, 2002 04:51 AM

Hello, I've tried to get the HelloWorld sample from JSSE to work and failed in one case with a java.rmi.UnknownHostException. The server and the client run on different machines. (server and client on the same machine was no problem) part of the HelloClient code: Registry registry = LocateRegistry.getRegistry("my.server.net", 1099); obj = (Hello)registry.lookup("//my.server.net/HelloServer"); till now everything works fine sMessage = obj.sayHello(); but in this line when he try to excute the code on the server i get a Unknow   More>>

Hello,



I've tried to get the HelloWorld sample from JSSE to

work and failed in one case with a

java.rmi.UnknownHostException.

The server and the client run on different machines.

(server and client on the same machine was no problem)



part of the HelloClient code:



			
Registry registry = LocateRegistry.getRegistry("my.server.net", 1099);

obj = (Hello)registry.lookup("//my.server.net/HelloServer");


till now everything works fine



			
sMessage = obj.sayHello();


but in this line when he try to excute the code on the

server i get a UnknownHostException!?

So, how's that? He is able to connect to the server and

look up the rmiregistry but then fails pretending that

he doesn't know the host! That's a bit strange to me and

i was not able to find a solution for that problem yet.

Any idea what's going wrong?



Regards Steffen    <<Less

Re: java.rmi.UnknownHostException while running a sample<br>!_NEWLINE_!implementation of RMI with SSL

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, September 27, 2002 07:06 AM

Is it a DNS problem on the client? Does the client machine resolve the server hostname OK, outside of Java? Can you nslookup, dig, ping, traceroute, telnet etc. to the server hostname, and is it recognized there?

About | Sitemap | Contact