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

Paul Clapham pclapham at core-mark.com
Wed Aug 13 18:37:29 GMT 2008


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..|
00010: 54 65 73 74 69 6E 67 0D 0A 54 65 73 74 69 6E 67  |Testing..Testing|
00020: 0D 0A 54 65 73 74 69 6E 67 0D 0A 54 65 73 74 69  |..Testing..Testi|
00030: 6E 67 0D 0A 54 65 73 74 69 6E 67 0D 0A 54 65 73  |ng..Testing..Tes|
00040: 74 69 6E 67 0D 0A 54 65 73 74 69 6E 67 0D 0A 54  |ting..Testing..T|
00050: 65 73 74 69 6E 67 0D 0A 54 65 73 74 69 6E 67 0D  |esting..Testing.|
00060: 0A 54 65 73 74 69 6E 67 0D 0A 54 65 73 74 69 6E  |.Testing..Testin|
00070: 67 0D 0A 54 65 73 74 69 6E 67 0D 0A 54 65 73 74  |g..Testing..Test|

java.lang.RuntimeException: zero termination not found
	at java.lang.Throwable.<init>(Throwable.java:195)
	at java.lang.Exception.<init>(Exception.java:41)
	at java.lang.RuntimeException.<init>(RuntimeException.java:43)
	at jcifs.smb.ServerMessageBlock.readString(ServerMessageBlock.java:249)
	at jcifs.smb.ServerMessageBlock.readString(ServerMessageBlock.java:232)
	at
jcifs.smb.SmbComTreeConnectAndXResponse.readBytesWireFormat(SmbComTreeConnectAndXResponse.java:58)
	at
jcifs.smb.AndXServerMessageBlock.readAndXWireFormat(AndXServerMessageBlock.java:224)
	at
jcifs.smb.AndXServerMessageBlock.readAndXWireFormat(AndXServerMessageBlock.java:261)
	at jcifs.smb.AndXServerMessageBlock.decode(AndXServerMessageBlock.java:86)
	at jcifs.smb.SmbTransport.doRecv(SmbTransport.java:469)
	at jcifs.util.transport.Transport.loop(Transport.java:110)
	at jcifs.util.transport.Transport.run(Transport.java:265)
	at java.lang.Thread.run(Thread.java:534)
jcifs.util.transport.TransportException: Transport1 timedout waiting for
response to
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]
	at java.lang.Throwable.<init>(Throwable.java:195)
	at java.lang.Exception.<init>(Exception.java:41)
	at java.io.IOException.<init>(IOException.java:40)
	at
jcifs.util.transport.TransportException.<init>(TransportException.java:14)
	at jcifs.util.transport.Transport.sendrecv(Transport.java:76)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:619)
	at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:288)
	at jcifs.smb.SmbSession.send(SmbSession.java:233)
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:161)
	at jcifs.smb.SmbFile.doConnect(SmbFile.java:850)
	at jcifs.smb.SmbFile.connect(SmbFile.java:893)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:819)
	at jcifs.smb.SmbFile.open0(SmbFile.java:909)
	at jcifs.smb.SmbFile.open(SmbFile.java:943)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
	at com.coremark.file.NetworkFile.getOutputStream(NetworkFile.java:123)
	at SmbTest.copy(SmbTest.java:39)
	at SmbTest.test(SmbTest.java:23)
	at SmbTest.main(SmbTest.java:14)
jcifs.smb.SmbException: Transport1 timedout waiting for response to
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]
jcifs.util.transport.TransportException: Transport1 timedout waiting for
response to
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]
	at java.lang.Throwable.<init>(Throwable.java:195)
	at java.lang.Exception.<init>(Exception.java:41)
	at java.io.IOException.<init>(IOException.java:40)
	at
jcifs.util.transport.TransportException.<init>(TransportException.java:14)
	at jcifs.util.transport.Transport.sendrecv(Transport.java:76)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:619)
	at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:288)
	at jcifs.smb.SmbSession.send(SmbSession.java:233)
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:161)
	at jcifs.smb.SmbFile.doConnect(SmbFile.java:850)
	at jcifs.smb.SmbFile.connect(SmbFile.java:893)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:819)
	at jcifs.smb.SmbFile.open0(SmbFile.java:909)
	at jcifs.smb.SmbFile.open(SmbFile.java:943)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
	at com.coremark.file.NetworkFile.getOutputStream(NetworkFile.java:123)
	at SmbTest.copy(SmbTest.java:39)
	at SmbTest.test(SmbTest.java:23)
	at SmbTest.main(SmbTest.java:14)

	at java.lang.Throwable.<init>(Throwable.java:195)
	at java.lang.Exception.<init>(Exception.java:41)
	at java.io.IOException.<init>(IOException.java:40)
	at jcifs.smb.SmbException.<init>(SmbException.java:143)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:626)
	at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:288)
	at jcifs.smb.SmbSession.send(SmbSession.java:233)
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:161)
	at jcifs.smb.SmbFile.doConnect(SmbFile.java:850)
	at jcifs.smb.SmbFile.connect(SmbFile.java:893)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:819)
	at jcifs.smb.SmbFile.open0(SmbFile.java:909)
	at jcifs.smb.SmbFile.open(SmbFile.java:943)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
	at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
	at com.coremark.file.NetworkFile.getOutputStream(NetworkFile.java:123)
	at SmbTest.copy(SmbTest.java:39)
	at SmbTest.test(SmbTest.java:23)
	at SmbTest.main(SmbTest.java:14)



-- 
View this message in context: http://www.nabble.com/%22The-network-name-cannot-be-found%22-after-30-seconds-tp18859163p18968759.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.



More information about the jcifs mailing list