[jcifs] no name with type 0x00 with no scope for host
ashishn at ntechra.com
Thu Feb 21 06:09:30 EST 2002
hey, I called "getAllByAddress( "10.0.100.114" )" .
OK, even if I don't set "jcifs.smb.client.laddr" property, it works for
some dial up boxes.
Just now I have put windows 98 box in dial up mode and it works fine and I
have not set laddr property.
Now some fuzzy observation. hey, don't blame me for confusing u further :-)
Actually yday I was trying with XP box.and it did not work for sometime.
"nbtstat -A" was working fine though..
After sometime, even jcifs code started working.And to be frank, I am also
I made no change in the code... except that I set "jcifs.smb.client.laddr"
property to ip address of WAN interface.
It did not work then too.
then i removed the setting for "jcifs.smb.client.laddr". and after sometime,
it started working..
Now one more question.. if I am polling all IP Addresses of a subnet , i
really don't know which IP is a dial up .
So how do i differentiate between IPs and set "jcifs.smb.client.laddr"
I know I need not do such things for "nbtstat -A"...
----- Original Message -----
From: Allen, Michael B (RSCH) <Michael_B_Allen at ml.com>
To: <crh at ubiqx.mn.org>
Cc: <jcifs at lists.samba.org>
Sent: Tuesday, February 19, 2002 9:52 PM
Subject: RE: [jcifs] no name with type 0x00 with no scope for host
> > -----Original Message-----
> > From: Christopher R. Hertel [SMTP:crh at ubiqx.org]
> > Sent: Wednesday, February 20, 2002 12:34 AM
> > To: Allen, Michael B (RSCH)
> > Cc: jcifs at lists.samba.org
> > Subject: Re: [jcifs] no name with type 0x00 with no scope for host
> > "Allen, Michael B (RSCH)" wrote:
> > >
> > > > -----Original Message-----
> > > > From: Christopher R. Hertel [SMTP:crh at ubiqx.org]
> > > >
> > > > (though I have no idea why it would complain about not having the
> > > > name).
> > > >
> > > Ashish's program called:
> > >
> > > getAllByName( "10.0.100.114" )
> > >
> > > which calls:
> > >
> > > getAllByName( "10.0.100.114", 0x00, null );
> > >
> > > so when it cannot find any names matching this description the
> > > client retorts:
> > >
> > > UnknownHostException: no name with type 0x00 with no scope
> > > for host 10.0.100.114
> > This is very far down a whole big tangential sort of direction thingy,
> > but...
> > I thought that the method being called was getAllByAddress(), not
> > getAllByName() (or does the former call the latter?).
> I meant getAllByAddress. There is no getAllByName. Just a typo.
> > In any case, the error message is somewhat confusing since the suffix
> > byte is not significant when doing a NODE STATUS REQUEST using the
> > wildcard name. It is "okay" that no name with type 0x00 was found. The
> > other node might have an 0x20 and an 0x03 name or other names.
> You're knowlege of the protocol is getting in your way. All the query says
> looking for a name with type 0x00 at host 10.0.100.114 without scope".
> The response in this case was "Nope, no name with type 0x00 at
> without scope, sorry".
> > I think this is why I got spun off on the whole "WindowsXP doesn't
> > register the 0x00 name" tangent. From the error message, I thought that
> > code was actually, really, truly looking for an 0x00 name.
> It is. It does a NODE_STATUS_REQUEST using the wild card "*\0\0\0\0\0..."
> with a hex code of 0x00 and type of NBSTAT to port 137 of the specified
IP. If no
> response comes back you get:
> UnknownHostException: no name with type 0x00 with no scope for host
> What's the problem?
More information about the jcifs