[jcifs] StringIndexOutOfBoundsException

Michael B Allen mba2000 at ioplex.com
Fri Jul 18 13:32:53 EST 2003


> Hi,
>
> When I explore with jcifs 0.7.8 any shares with some 200 or more files
in
> them, I get the following exception in SmbTransport,

Can you generate a list of the files in that directory somehow? It must
have something to do with the filenames or something because I've never
seen jCIFS have a problem listing big directories (e.g. 15,000 files).

Just as an experiment can you try the latest jcifs-0.7.11. Also two
properties that effect this operation are jcifs.smb.client.listSize
(default 1200) and jcifs.smb.client.listCount (default 15). If the
exception is at buffer index 4980 that suggests something is becoming
unhinged. It would be interesting to see what buffer size was negotiated.
If you took a packet capture I could see that.

Also, what server are you testing this against?

Thanks,
Mike






More information about the jcifs mailing list