[jcifs] no name with type 0x20

Clint Heyer clint at thestaticvoid.net
Sat Sep 29 12:12:04 EST 2001


At 10:01 AM 29/09/2001, Michael B. Allen wrote:
>It doesn't work with the NetBIOS name?
Nup. I've tried everything, NetBIOS, IP and hostname.

> From those traces you sent me it
>looks like the target is simply not responding to a node status. I'm
>not surprised if it's some of Microsofts newer servers but it should
>respond to the correct NetBIOS name. I suspect what smbclient is doing
>is using the *SMBSERVER name. I thought jCIFS did this consistently
>but from looking at the code I have found a hole where it does not. I
>believe this may be the case here. But if the NetBIOS name doesn't work
>there is a more serious problem. Can you double check that and send me
>a trace please? Make sure you are using the correct name of course.
Trace attached.

A couple of things I haven't mentioned previously. The machine that is 
running the jCIFS-based code is a Windows XP box, and I am using JDK 1.4. 
I'm not sure if these are issues or not, simply because I can access other 
machines ok using IP, NetBIOS or DNS naming methodologies.

cheers,
  .clint


==[ Clint Heyer ]============================================
IRC: 'TheShadow' on irc.uq.edu.au
CELL: 04210-11-22-4
Please reply to: clint at thestaticvoid.net
--------------------------------------[ http://thestaticvoid.net ]--------
-------------- next part --------------
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.io.tmpdir=C:\\DOCUME~1\\MRHANK~1\\LOCALS~1\\Temp\\
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.fonts=
java.library.path=C:\\jdk1.4\\bin;.;C:\\WINDOWS\\System32;C:\\WINDOWS;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Apps\\Tools\\ULTRAE~1;C:\\Apps\\Net\\SecureCRT
java.vendor.url=http://java.sun.com/
java.protocol.handler.pkgs=jcifs
file.separator=\\
file.encoding.pkg=sun.io
os.version=5.1
os.name=Windows 2000
os.arch=x86
user.name=Mr Hanky
user.dir=H:\\work\\astro
user.variant=
user.timezone=
user.home=C:\\Documents and Settings\\Mr Hanky
user.country=AU
user.language=en
sun.boot.library.path=C:\\jdk1.4\\jre\\bin
sun.boot.class.path=C:\\jdk1.4\\jre\\lib\\rt.jar;C:\\jdk1.4\\jre\\lib\\i18n.jar;C:\\jdk1.4\\jre\\lib\\sunrsasign.jar;C:\\jdk1.4\\jre\\lib\\jsse.jar;C:\\jdk1.4\\jre\\lib\\jce.jar;C:\\jdk1.4\\jre\\lib\\charsets.jar;C:\\jdk1.4\\jre\\classes
sun.arch.data.model=32
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.os.patch.level=
sun.io.unicode.encoding=UnicodeLittle
awt.toolkit=sun.awt.windows.WToolkit
path.separator=;
line.separator=\r\n


Sep 29 12:06:43.922 - name service address cache

 JCIFS118_228_7A<00> JCIFS118_228_7A<00>/192.168.118.228



Sep 29 12:06:43.932 - name service address cache

 0.0.0.0<00> 0.0.0.0<00>/0.0.0.0

 WINTERMUTE<20> *Sep 29 12:06:44.183 - nbt name service packet sent

NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*Sep 29 12:06:47.187 - nbt name service packet sent

NodeStatusRequest[nameTrnId=2,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*Sep 29 12:06:50.622 - smb tree connect warning

 requesting tree connect with path=\\192.168.118.224\IPC$,service=?????

Sep 29 12:06:50.622 - smb session setup warning

 requesting session with accountName=GUEST,accountPassword=,primaryDomain=?

Sep 29 12:06:50.632 - smb negotiation warning

 requesting negotiation with *Sep 29 12:06:50.722 - nbt name service packet sent

NodeStatusRequest[nameTrnId=3,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*Sep 29 12:06:53.726 - nbt name service packet sent

NodeStatusRequest[nameTrnId=4,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*Sep 29 12:06:56.731 - SmbFile exception

java.net.UnknownHostException: no name with type 0x20 with no scope for host 192.168.118.224

	at jcifs.netbios.NbtAddress.getAllByAddress(NbtAddress.java:622)

	at jcifs.netbios.NbtAddress.checkData(NbtAddress.java:286)

	at jcifs.netbios.NbtSocket.connect(NbtSocket.java:100)

	at jcifs.netbios.NbtSocket.<init>(NbtSocket.java:62)

	at jcifs.netbios.NbtSocket.<init>(NbtSocket.java:50)

	at jcifs.smb.SmbTransport.ensureOpen(SmbTransport.java:215)

	at jcifs.smb.SmbTransport.send(SmbTransport.java:400)

	at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:525)

	at jcifs.smb.SmbTransport.send(SmbTransport.java:362)

	at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:154)

	at jcifs.smb.SmbSession.send(SmbSession.java:128)

	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:84)

	at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:49)

	at jcifs.smb.SmbTree.netShareEnum(SmbTree.java:289)

	at jcifs.smb.SmbFile.list(SmbFile.java:710)

	at List.main(List.java:45)

no such file or directory

Process Exit...


More information about the jcifs mailing list