From owner-freebsd-java Thu Aug 2 7: 9:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id 7FF3437B401 for ; Thu, 2 Aug 2001 07:09:53 -0700 (PDT) (envelope-from archer@whichever.org) Received: from 207-172-201-74.s11.as2.xnb.nj.dialup.rcn.com ([207.172.201.74] helo=unknown.whichever.org) by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.32 #2) id 15SJAc-0007Vm-00 ; Thu, 02 Aug 2001 10:09:51 -0400 Received: (from archer@localhost) by unknown.whichever.org (8.11.4/8.11.1) id f72E9m323877; Thu, 2 Aug 2001 10:09:48 -0400 (EDT) (envelope-from archer) Date: Thu, 2 Aug 2001 10:09:48 -0400 (EDT) Message-Id: <200108021409.f72E9m323877@unknown.whichever.org> From: Alexander Litvin To: j mckitrick Cc: freebsd-java@freebsd.org Subject: Re: argh!! Can't get bind/rmi to work.... In-Reply-To: <20010703135949.F35349@dogma.freebsd-uk.eu.org> X-Newsgroups: unknown.freebsd.java User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (FreeBSD/5.0-CURRENT (i386)) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > | Looks like some sort of DNS issue, right? > | is BindTest a valid hostname on your system? > | I doubt it. > | Try replacing: > | > | String name = "//BindTest"; > | by > | tring name = "//localhost/BindTest"; > Well, according to the API, the host name defaults to localhost if left out, > and the port defaults to 1099 (rmiregistry's default) if left out. But even > when i use localhost, it doesn't work. :-\ Do you by any chance run current? Why I'm asking is that I got the same kind of failure with very straightforward networking program (just does getByName() and sends udp packets to the obtained address). And this program used to work at least some 6 months ago. Since then I upgraded system couple of times, and now the very same program causes java 1.2.2 (FreeBSD native built from port) to coredump with the similar simpthoms as yours. So, I figure, it has something to do with my system upgrade (libraries? syscalls?). I even rebuilt jdk, but it didn't help. The simple program below causes java to die at the line where DatagramPacket is constructed: ---- import java.net.*; import java.io.*; public class dns { public static void main(String[] args) throws InterruptedException { byte[] buffer = new byte[2048]; try { InetAddress addr=InetAddress.getByName(args[0]); DatagramPacket packet = new DatagramPacket(buffer,buffer.length, addr,1111); } catch(Exception e) { e.printStackTrace(System.out); } } } ---- I'm going to investigate this, if I can. -- #include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message