[jcifs] Re: SmbException in jcifs-1.2.7

Rainer Buss rainer.buss at rbconsult.de
Mon Jan 16 10:30:08 GMT 2006


Michael B Allen <mba2000 <at> ioplex.com> writes:
> ..
> JCIFS is specifically designed for "concurrent access". But if
> your network is flakey, increase your loglevel to 2 (should be ok in
> production) and see if you're getting any timeouts. If so you might want
> to look into the responseTimeout property.
> ..

Hi Mike,

we followed your advice, increased the jcifs- loglevel and traced our 
application. Several days there where some exceptions, but jcifs did not hang.
This night jcifs had a severe problem, that caused loosing the connection
to remote share permanently. Could you pls have a look at this.

We traced the following:

INFO   | jvm 1    | 2006/01/16 03:46:57 | 00000: FF 53 4D 42 32 00 00 00 00 98 
01 80 00 00 00 00  |ÿSMB2...........|
INFO   | jvm 1    | 2006/01/16 03:46:57 | 00010: 00 00 00 00 00 00 00 00 40 00 
15 52 00 08 0C 3A  |........ at ..R...:|

java.lang.StringIndexOutOfBoundsException: String index out of range: 2097248
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at java.lang.String.checkBounds
(String.java:292)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at java.lang.String.<init>
(String.java:326)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.smb.Trans2FindFirst2Response.readString(Trans2FindFirst2Response.java:108)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.smb.Trans2FindFirst2Response.readDataWireFormat
(Trans2FindFirst2Response.java:191)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.smb.SmbComTransactionResponse.readBytesWireFormat
(SmbComTransactionResponse.java:146)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.smb.ServerMessageBlock.decode(ServerMessageBlock.java:327)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at jcifs.smb.SmbTransport.doRecv
(SmbTransport.java:453)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.util.transport.Transport.loop(Transport.java:108)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at 
jcifs.util.transport.Transport.run(Transport.java:242)
INFO   | jvm 1    | 2006/01/16 03:46:57 | 	at java.lang.Thread.run
(Thread.java:536)

Afterwards we traced only exceptions like the following one for about
20 minutes and then no more entries have been written since reboot of
our application.

[SUMMIT_INSTRUMENT-#1] transfer.FrontOfficeFileTransfer (?) - Error 
transferring File : jcifs.smb.SmbException: 
INFO   | jvm 1    | 2006/01/16 03:47:07 | 
jcifs.util.transport.TransportException: Transport1[duss0485/15.1.15.151:445] 
timedout waiting for response to Trans2QueryPathInformation
[command=SMB_COM_TRANSACTION2,received=false,errorCode=0,flags=0x0018,flags2=0xC
003,signSeq=0,tid=64,pid=21013,uid=2048,mid=14860,wordCount=15,byteCount=119,tot
alParameterCount=118,totalDataCount=0,maxParameterCount=2,maxDataCount=40,maxSet
upCount=0,flags=0x00,timeout=0,parameterCount=118,parameterOffset=66,parameterDi
splacement=0,dataCount=0,dataOffset=184,dataDisplacement=0,setupCount=1,pad=1,pa
d1=0,informationLevel=0x101,filename=\RMSC_Equities_Transfer\Applications\MPVaR_
SUMMIT\Input]

cu

Rainer Buss





More information about the jcifs mailing list