[jcifs] New user questions

Michael B Allen mballen at erols.com
Sat Mar 16 13:09:59 EST 2002


On Fri, 15 Mar 2002 17:40:03 -0600
Christopher R.Hertel <crh at ubiqx.mn.org> wrote:

> This is a broadcast query being sent to the local subnet, not to the WINS
> server.  It is looking for the local browser.  Any browser will do (any
> workgroup, local master or backup... we don't care, we just want to find 
> someone with a browse list).  The message is repeated once.
> 
> [Mike:  I'm missing something.  The second attempt has a TrnID of 2, not 1
>         like the first.  Shouldn't there be three tries, all with the same
>         TrnID?]

Are you sure thr TrnIDs are supposed to be the same? That may have been
true at one time but it's possible it's just wrong now. Regarding retries
jCIFS does 2 tries and waits three seconds for each response instead of
3 tries for 5 seconds each accoring to the spec. That cuts the wait time
in half but reduces the likelyhood of success by much less than half
(probably 0.0000000001% :~). The bottom line is 15 seconds is ridiculous.

> > Mar 14 22:30:14.823 - nbt name service packet sent
> > NameQueryRequest[nameTrnId=2,isResponse=false,opCode=QUERY,isAuthAnswer=false,is
> > Truncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resu
> > ltCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questi
> > onName=..__MSBROWSE__.<01>,questionType=0x0020,questionClass=IN,recordName=null,
> > recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
> > Mar 14 22:30:14.823 - datagram packet sent to: 255.255.255.255
> > 00000: 00 02 01 10 00 01 00 00 00 00 00 00 20 41 42 41  |............ ABA|
> > 00010: 43 46 50 46 50 45 4E 46 44 45 43 46 43 45 50 46  |CFPFPENFDECFCEPF|
> > 00020: 48 46 44 45 46 46 50 46 50 41 43 41 42 00 00 20  |HFDEFFPFPACAB.. |
> > 00030: 00 01                                            |..              |
> > 
> > Mar 14 22:30:17.828 - name service address cache
> >  0.0.0.0<00> 0.0.0.0<00>/0.0.0.0
> >  JCIFS0_8_4B<20> JCIFS0_8_4B<20>/192.168.0.8
> >  ..__MSBROWSE__.<01> 0.0.0.0<00>/0.0.0.0
> > 
> > Exception in thread "main" java.net.UnknownHostException: ..__MSBROWSE__.<01>
> >         at jcifs.netbios.NbtAddress.doNameQuery(NbtAddress.java:319)
> >         at jcifs.netbios.NbtAddress.getByName(NbtAddress.java:390)
> >         at jcifs.netbios.NbtAddress.getByName(NbtAddress.java:371)
> >         at jcifs.smb.SmbFile.<init>(SmbFile.java:385)
> >         at jcifs.smb.SmbFile.<init>(SmbFile.java:335)
> >         at SmbShell.run(SmbShell.java:75)
> >         at SmbShell.main(SmbShell.java:181)

-- 
May The Source be with you.


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################




More information about the jcifs mailing list