[jcifs] "The network name cannot be found" after 30 seconds

Michael B Allen ioplex at gmail.com
Wed Aug 13 23:21:45 GMT 2008


On Wed, Aug 13, 2008 at 2:37 PM, Paul Clapham <pclapham at core-mark.com> wrote:
>
> Well, it appears that I should have tested the 1.2.25a fix with a larger
> file. When I'm using JCIFS to transfer a file of non-trivial length, I get
> this after the reconnection that happens after 30 seconds of inactivity:
>
> java.lang.RuntimeException: zero termination not found
>
> jcifs.util.transport.TransportException: Transport1 timedout waiting for
> response to SmbComSessionSetupAndX
>
> Here's the last part of the log file, is there something earlier I should be
> looking for?
>
> doConnect: DC010/10.10.254.10
> SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=37173,uid=0,mid=725,wordCount=0,byteCount=12,wordCount=0,dialects=NT
> LM 0.12]
> New data read: Transport1[DC010/10.10.254.10:445]
> 00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |ÿSMBr......À....|
> 00010: 00 00 00 00 00 00 00 00 00 00 35 91 00 00 D5 02  |..........5...Õ.|
>
> SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=37173,uid=0,mid=725,wordCount=17,byteCount=17,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPasswords=true,maxMpxCount=5,maxNumberVcs=1,maxBufferSize=4356,maxRawSize=65536,sessionKey=0x00000083,capabilities=0x0000C21D,serverTime=Wed
> Aug 13 11:04:09 PDT
> 2008,serverTimeZone=300,encryptionKeyLength=8,byteCount=17,encryptionKey=0x8F40976AF4D65B3E,oemDomainName=????]
> treeConnect: unc=\\DC010\JAVA,service=?????
> sessionSetup: accountName=jmsuser,primaryDomain=?
> SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=37173,uid=0,mid=726,wordCount=13,byteCount=95,andxCommand=0x75,andxOffset=156,snd_buf_size=4356,maxMpxCount=5,VC_NUMBER=1,sessionKey=0,passwordLength=24,unicodePasswordLength=24,capabilities=20,accountName=jmsuser,primaryDomain=?,NATIVE_OS=OS/400,NATIVE_LANMAN=jCIFS]
> SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=37173,uid=0,mid=0,wordCount=4,byteCount=33,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\DC010\JAVA,service=?????]
> New data read: Transport1[DC010/10.10.254.10:445]
> 00000: FF 53 4D 42 73 00 00 00 00 98 03 C0 00 00 00 00  |ÿSMBs......À....|
> 00010: 00 00 00 00 00 00 00 00 00 00 35 91 01 00 D6 02  |..........5...Ö.|
>
> 00000: 4E 54 46 53 00 0D 0A 54 65 73 74 69 6E 67 0D 0A  |NTFS...Testing..|

Please try 1.2.25b in the download area.

Appently the iSeries implementation is sending the NativeFileSystem
field in ASCII (see hex above) even though Unicode is indicated. I
seem to recall Windows 98 doing someone like that too.

Anyway, that field is of no use to anyone so I think it's safe to just
comment out that bit if code.

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


More information about the jcifs mailing list