[jcifs] SmbException=Timeout waiting for response from server
Michael B Allen
mba2000 at ioplex.com
Mon May 10 09:27:13 GMT 2004
Korbben Dallas said:
> Hi!
> I execute a servlet each 5 minutes to check if a file
> exist or not, with smbFile().exists().
> I've got this message : SmbException=Timeout waiting
> for response from server, one or two times per week,
> at different hours. There is no spécial process
> running. Can i change the timeout of jcifs ?
> Thanks for any idea.
Chances are the server really isn't interested in talking at that moment
or the connection got reset or something else you cannot control happend.
I would recommend catching the exception and selectively ignoring it or
retrying.
Otherwise yes, you can increase the timeout and that will probably reduce
the errors. See responseTimeout on the overview page of the api
documentation.
Mike
More information about the jcifs
mailing list