Date: Mon, 5 Aug 2002 19:14:39 -0400 From: "Allen, Michael B (RSCH)" <Michael_B_Allen@ml.com> To: "'Dan Diephouse'" <diephouse@eastnode.com>, jcifs@lists.samba.org, "'freebsd-java@freebsd.org'" <freebsd-java@freebsd.org> Subject: RE: [jcifs] Resolution problems Message-ID: <19B572CFAC42D211A20000805FA7875A05ADECFC@eat404.hew.us.ml.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19B572CFAC42D211A20000805FA7875A05ADECFC>