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

Hammerl, Maximilian - Extern maximilian.hammerl.extern at
Tue Aug 15 12:39:58 GMT 2006


here comes the stack trace data:

jcifs.smb.SmbException: The system cannot find the path specified.
	at jcifs.smb.SmbTransport.checkStatus(
	at jcifs.smb.SmbTransport.send(
	at jcifs.smb.SmbSession.send(
	at jcifs.smb.SmbTree.send(
	at jcifs.smb.SmbFile.send(
	at jcifs.smb.SmbFile.delete(
	at jcifs.smb.SmbFile.delete(
	at sedi.smb.List.deleteFile(
	at sedi.smb.List.main(

Network Packet Capture is not available, because I don't have administrative
rights to install any software on the server as well as the client.

If the client and the shared network drive reside on the same machine, the
delete-function works fine. If client and share are on different machines,
delete fails. Is this a problem with security settings and/or user rights?

Kind regards,

-----Ursprüngliche Nachricht-----
Von: Michael B Allen [mailto:mba2000 at] 
Gesendet: Montag, 31. Juli 2006 17:52
An: Hammerl, Maximilian - Extern
Cc: jcifs at
Betreff: Re: [jcifs] smbFile.delete() throws "jcifs.smb.SmbException: Thesystem cannot find the path specified"

On Mon, 31 Jul 2006 13:26:43 +0200
"Hammerl, Maximilian - Extern" <maximilian.hammerl.extern at> 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
> ( this 
> seems to be a bug, but fixed since jcifs-1.2.3
> ( 
> 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.


Michael B Allen
PHP Extension for SSO w/ Windows Group Authorization

More information about the jcifs mailing list