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/01/30 23:16:05 UTC

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 


Re: Testcase for host-rmi hangs on Red Hat Linux

Posted by Luciano Resende <lu...@gmail.com>.
I think I have the same version as you :
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

The host-rmi is working in my environment with no issues.

On Fri, Jan 30, 2009 at 2:16 PM, Raymond Feng <en...@gmail.com> wrote:
> 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
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/