[jcifs] The system cannot find the path specified !

Michael Schlegel lulog1 at yahoo.de
Wed Jun 6 12:57:05 GMT 2007

Hi !

I use JCIFS-1.2.13 to crawl a Windows-Fileshare with more than 1000000
directories and files. ...

I read all files from a directory and put the url
(SmbFile.getURL().toExternalForm()) from every single file into a buffer (e.g
List). Later i iterate over this buffer and create a new SmbFile with the url
from the buffer. But now SmbFile.exists() indicates that the file doesnt exists.
I debuged the exists() method and i got this exception:

jcifs.smb.SmbException: The system cannot find the path specified.
	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:514)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:591)
	at jcifs.smb.SmbSession.send(SmbSession.java:239)
	at jcifs.smb.SmbTree.send(SmbTree.java:109)
	at jcifs.smb.SmbFile.send(SmbFile.java:694)
	at jcifs.smb.SmbFile.queryPath(SmbFile.java:1223)
	at jcifs.smb.SmbFile.exists(SmbFile.java:1277)

I do not understand why this happens, because i opened the file some minutes
befor e with the same url.

I hope you can help me or give me a tip what can i do.

This is an example url:

More information about the jcifs mailing list