[jcifs] smbFile.delete() throws "jcifs.smb.SmbException: The system cannot find the path specified"

Michael B Allen mba2000 at ioplex.com
Mon Jul 31 15:51:36 GMT 2006


On Mon, 31 Jul 2006 13:26:43 +0200
"Hammerl, Maximilian - Extern" <maximilian.hammerl.extern at unique.ch> wrote:

> Hi everyone,
> 
> I've got a piece of code, which doesn't work:
> 
> SmbFile file = new SmbFile(url);
> 			
> if (file.exists() == true)
> {
> 	file.delete();
> }
> 
> url =
> smb://<domain>;<user>:<password>@<host>//<sharename>/<path>/<filename>
> 
> Function delete() returns "jcifs.smb.SmbException: The system cannot
> find the path specified".
> 
> 
> As found in an earlier thread
> (http://lists.samba.org/archive/jcifs/2005-August/005340.html) this
> seems to be a bug, but fixed 
> since jcifs-1.2.3
> (http://lists.samba.org/archive/jcifs/2005-August/005399.html). 
> 
> I'm using jcifs-1.2.9. So what is going wrong?

Run your example with log_level set high and check for DFS referrals to
determine if it's really a DFS problem. It might not be. Also, post any
stack trace of the error.

Mike

-- 
Michael B Allen
PHP Extension for SSO w/ Windows Group Authorization
http://www.ioplex.com/


More information about the jcifs mailing list