RMI on HP-UX - application closes after bind
Hi,
I've got a simple test application of RMI. It's a copy of PerfectTime
application from Thinking in Enterprise Java by Bruce Eckel. I've used
it to test RMI on windows.
Now i've copied it to HP-UX. When i run it, everything seems to be ok,
accept the fact, that after the bind to RMI, applications simply
closes.
On windows it waits for new connections.
I will paste only the last few lines from the main class:
PerfectTime pt = new PerfectTime();
Naming.bind("//localhost/PerfectTime", pt);
System.out.println("Ready to do time");
}
} ///:~
Is there something missing?
Please, help ;)
Best regards,
Krystian
EDIT:
there is no exception or error. it just ends.
Message was edited by:
Krystian_PL
From what i have read it might be.. normal.
But my client can't connect to the rmiregistry!
I get:
Exception in thread "main" java.rmi.ConnectException: Connection refused to host
: 10.13.221.43; nested exception is:
java.net.ConnectException: Connection timed out
But then i check Naming.list i get a list of binds /one exactly/.
What's wrong here?
How come i can check binds but can't connect with client?
My policy:
grant { permission java.security.AllPermission; };
Please, help me with this, it's urgent :/
That can't be right. If Naming.list() works then Naming.lookup() should work. Do you mean that you can't connect to the server after doing the lookup()?
Can you ping that IP address from the client? Can you telnet it? Is that the IP address you expect to connect to? Is it the same as you're using in the Naming.lookup()/Naming.list()?
If not, you have the famous java.rmi.server.hostname problem. Look it up in the Javadoc.
ejpa at 2007-7-15 13:59:46 >
