[jcifs] TransportException executing SmbFile.length() - delay dependent

Filip Orelj chicholinac at yahoo.com
Sat Sep 17 14:33:42 GMT 2005


Hi, 

trying out jcifs (1.2.3) I encountered pretty strange
exception (on linux).
I write particular lines to a text file using
different values for delays. 
With delay values out of -1 line per second- range
everything works fine, but for values close to the
range, the Exception below appears after approx. 200k
of written data, trying execute SmbFile.length().
(BTW, the same code works fine writing lines every 15
min. as well as 10 lines/sec.)

Any idea?

trace:
jcifs.util.transport.TransportException:
Transport7[filipovlin/192.168.0.1:139] timedout
waiting for response to
Trans2QueryPathInformation[command=SMB_COM_TRANSACTION2,received=false,errorCode=The
operation completed
successfully.,flags=0x0018,flags2=0x4003,signSeq=0,tid=1,pid=64329,uid=100,mid=858,wordCount=15,byteCount=41,totalParameterCount=40,totalDataCount=0,maxParameterCount=2,maxDataCount=40,maxSetupCount=0,flags=0x00,timeout=0,parameterCount=40,parameterOffset=66,parameterDisplacement=0,dataCount=0,dataOffset=106,dataDisplacement=0,setupCount=1,pad=1,pad1=0,informationLevel=0x102,filename=\2\TestFile2.tx5]
	at jcifs.smb.SmbTransport.send(SmbTransport.java:533)
	at jcifs.smb.SmbSession.send(SmbSession.java:228)
	at jcifs.smb.SmbTree.send(SmbTree.java:102)
	at jcifs.smb.SmbFile.send(SmbFile.java:688)
	at jcifs.smb.SmbFile.queryPath(SmbFile.java:1196)
	at jcifs.smb.SmbFile.length(SmbFile.java:2142)
	at
com.fkbase.jcifs.JcifsWriter.writeLineToFile(JcifsWriter.java:250)


Thanks,
Filip

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the jcifs mailing list