From owner-freebsd-java Mon Aug 5 16:15:10 2002 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFB2637B400 for ; Mon, 5 Aug 2002 16:15:02 -0700 (PDT) Received: from wstutil12a.ml.com (wstutil12a-v.ml.com [209.65.19.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id D391843E4A for ; Mon, 5 Aug 2002 16:15:01 -0700 (PDT) (envelope-from Michael_B_Allen@ml.com) Received: from wstutil13a.ml.com (wstutil13a [146.125.185.11]) by wstutil12a.ml.com (8.11.3/8.11.3/wstutil12a-1.2) with ESMTP id g75NF1W25115; Mon, 5 Aug 2002 19:15:01 -0400 (EDT) Received: from ewstwt02.exchange.ml.com (ewstwt02.exchange.ml.com [146.125.249.152]) by wstutil13a.ml.com (8.11.3/8.11.3/wstutil13a-1.1) with SMTP id g75NF0115143; Mon, 5 Aug 2002 19:15:00 -0400 (EDT) Received: from 169.242.226.176 by ewstwt02.exchange.ml.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7);); Mon, 05 Aug 2002 19:12:32 -0400 X-Server-Uuid: 3789b954-9c4e-11d3-af68-0008c73b0911 Received: by ehope09.hew.us.ml.com with Internet Mail Service ( 5.5.2653.19) id ; Mon, 5 Aug 2002 19:14:41 -0400 Message-ID: <19B572CFAC42D211A20000805FA7875A05ADECFC@eat404.hew.us.ml.com> From: "Allen, Michael B (RSCH)" To: "'Dan Diephouse'" , jcifs@lists.samba.org, "'freebsd-java@freebsd.org'" Subject: RE: [jcifs] Resolution problems Date: Mon, 5 Aug 2002 19:14:39 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 1151D9EA105594-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Ah, ok. Well that's not it then. It must be a Java on FreeBSD issue. freebsd-java, Please help Dan. He is getting: Aug 5 16:46:20.962 - nbt name service send: java.io.IOException: Permission denied at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:321) at jcifs.netbios.NameServiceClient.send(NameServiceClient.java:222) at jcifs.netbios.NameServiceClient.getByName(NameServiceClient.java:253) at jcifs.netbios.NbtAddress.doNameQuery(NbtAddress.java:311) at jcifs.netbios.NbtAddress.getByName(NbtAddress.java:390) at jcifs.UniAddress$QueryThread.run(UniAddress.java:77) trying to send a datagram on the broadcast address. Is this a known issue? Dan, If this message doesn't get through because I'm not on their list, please follow through at http://www.freebsd.org/java/. Mike > -----Original Message----- > From: Dan Diephouse [SMTP:diephouse@eastnode.com] > Sent: Monday, August 05, 2002 6:59 PM > To: jcifs@lists.samba.org > Subject: Re: [jcifs] Resolution problems > > If you look at my message, you'l see my command line arguments. Here is > what I executed: > > ocean:70[/home/dan/WDev/jcifs_0.6.5/examples]$ java -classpath > $CLASSPATH:../jcifs-0.6.5.jar -Dbaddr=192.168.2.255 -Dlog=ALL List > smb://presario > > I used the "baddr=192.168.2.255" option. Did I not use it correctly? > > Thanks, > > Dan > > Allen, Michael B (RSCH) wrote: > > > Try setting baddr=192.168.2.255. On Linux if you don't set this you > > sometimes get a "Network is unreachable" message (see FAQ). The > > "Permission denied" message is new to me but that could just be the > > equivalent message for FreeBSD. Ultimately Java doesn't provide a way > > to extract the broadcast address of a machine and trying to send a > > datagram on 255.255.255.255 can fail. > > > > I suppose it wouldn't be too difficult to determine a reasonable > > broadcast address based on the local host address and it's IP address > > classification. > > > > > -- > Dan Diephouse > http://eastnode.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message