[jcifs] DFS listFiles() SmbException 0xC000000E

MacDermid, Kenny kenny.macdermid at abridean.com
Thu Mar 10 21:12:51 GMT 2005


Hello,

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

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. It seems it doesn't figure out that this =
is really a virtual mapping to the DFS.

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

jcifs.smb.SmbException: 0xC000000E
	at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:861)
	at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
	at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
	at jcifs.smb.SmbTransport.getDfsReferral(SmbTransport.java:532)
	at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:855)
	at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:246)
	at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:74)
	at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:689)
	at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1715)
	at jcifs.smb.SmbFile.listFiles(SmbFile.java:1606)
	at jcifs.smb.SmbFile.listFiles(SmbFile.java:1514)

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

Thanks in advance,

Kenny

--=20
Outgoing mail is certified Virus Contaminated:
X5O!P%@AP[4(P^)7CC)7$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.1 - Release Date: 3/9/2005
=20


More information about the jcifs mailing list