[jcifs] Resolution problems
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Tue Aug 6 09:14:39 EST 2002
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 at eastnode.com]
> Sent: Monday, August 05, 2002 6:59 PM
> To: jcifs at 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
>
>
>
More information about the jcifs
mailing list