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