You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2009/02/06 17:30:22 UTC
Re: Testcase for host-rmi hangs on Red Hat Linux
FYI: I finally found the problem with my desktop. Its host name was set an
existing name in DNS but the ip address is assigned from DHCP. As a result,
the RMI stub tries to connect to another machine instead of my own and it
hangs. The test case runs successfully after changing the host name.
Thanks,
Raymond
--------------------------------------------------
From: "Raymond Feng" <en...@gmail.com>
Sent: Friday, January 30, 2009 2:16 PM
To: "tuscany-dev" <de...@tuscany.apache.org>
Subject: Testcase for host-rmi hangs on Red Hat Linux
> Hi,
>
> The test case for host-rmi hangs on my desktop (Red Hat Enterprise Linux
> Server release 5.2). I noticed that connecting to a non-existent RMI
> registry hangs on instead of throwing out a ConnectException. The problem
> can be reproduced by the following simplified test case without Tuscany
> code.
>
> public class RegistryTestCase {
> @Test
> public void testCreate() throws Exception {
> Registry reg = LocateRegistry.getRegistry(9999);
> reg.list();
> System.out.println("Done");
> }
> }
>
> Do any of you see the problem too?
>
> Thanks,
> Raymond