[jcifs] DFS listFiles() SmbException 0xC000000E

Michael B Allen mba2000 at ioplex.com
Fri Mar 11 04:41:04 GMT 2005


On Thu, 10 Mar 2005 14:12:51 -0700
"MacDermid, Kenny" <kenny.macdermid at abridean.com> wrote:

> Hello,
> 
> I'm trying to get jcifs to work in a DFS environment, and am having some
> problems.

What is the CIFS server you are communicating with?

> 
> First I'll setup the situation:
> 
> Using jcifs: 1.1.9
> DFS is setup to: \\domain.address\dfs
> DFS Contains: \\host1\LDFS  (stands for local DFS)
> DFS Contains: \\host2\LDFS
> \\domain.address\dfs\TestDir exists
> \\domain.address\dfs\TestDir\Dir1 exists (and full replicated)
> \\domain.address\dfs\TestDir\Dir2 exists (and full replicated)
> 
> The DFS files are accessible in windows explorer by hitting either
> \\host1\LDFS\ or \\host1\dfs\
> 
> First Problem:
> 
> I've been having trouble connecting to the DFS directly, so I'm trying to
> access it directly on one of the hosts, instead of through the domain
> address. My first problem is that if I try to access \\host1\dfs\ I get a
> network name not found error.

The NT_STATUS_BAD_NETWORK_NAME "The network name cannot be found." error
means it cannot locate the share.

> It seems it doesn't figure out that this is really a virtual mapping to
> the DFS.

If it works with explorer get a capture [1] of it working with Windows
2000/XP/2003 and another capture of jcifs failing with the same exact
parameters. Then I can figure out what the difference is. I think the
problem might be that I never tested having a dfs mapping that is the
share itself. I didn't know you could do that actually.

> Second Problem (the one from the subject line):
> 
> When connecting to one host directly using \\host1\LDFS\ I try to open:
> smb://host1/LDFS/TestDir/
> connect() runs fine
> listFiles() throws exception: 0xC000000E

That's NT_STATUS_NO_SUCH_DEVICE "The system cannot find the file
specified."

> Could your clarify what causes this error, and if I'm doing something
> wrong in trying to .listFiles() on a DFS host?

I can't tell. You're using jcifs correctly. It either a server
configuration error or a bug in JCIFS. I would really need the captures
to determine what the problem is.

Mike

[1] http://jcifs.samba.org/capture.html

-- 
IRC - where men are men, women are men, and the boys are FBI agents.


More information about the jcifs mailing list