[jcifs] jcifs fails with namespace

Wes Ream w_ream at yahoo.com
Mon Dec 1 20:08:21 GMT 2008


Hi,

I am working on JCIFS code using a vendor provided Cluster Namespace which acts
like DFS but is native to the NAS device.  The test we are running has JCIFS
access the share provided, authenticates, and reads/writes data to the share.

When we run this code on a standard CIFS share (without going through the
namespace) everything works fine.  When trying to use JCIFS to access the same
share through a Namespace we get the following error:

2008-12-01 14:51:34,939 [main] INFO  com.company.cir.jcifs.SmbFileFactory  [75]
- Creating smbFile instance for: [smb://192.168.4.4/LTCNS/Link-Test//]
  2008-12-01 14:51:35,002 [main] INFO  NasTest  [99] - Listing files in
directory smb://172.31.61.93/LTCNS/Link-Test/
  2008-12-01 14:51:35,002 [main] INFO  NasTest  [100] - 
  2008-12-01 14:51:41,142 [main] ERROR NasTest  [55] - The NT Status code is: 
C000003A
  jcifs.smb.SmbException: The system cannot find the path specified.
	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:536)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:613)
	at jcifs.smb.SmbSession.send(SmbSession.java:241)
	at jcifs.smb.SmbTree.send(SmbTree.java:111)
	at jcifs.smb.SmbFile.send(SmbFile.java:721)
	at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1923)
	at jcifs.smb.SmbFile.doEnum(SmbFile.java:1675)
	at jcifs.smb.SmbFile.list(SmbFile.java:1646)
	at jcifs.smb.SmbFile.list(SmbFile.java:1543)
	at NasTest.listDirectoryContents(NasTest.java:101)
	at NasTest.main(NasTest.java:45)
2008-12-01 14:51:41,142 [main] INFO  NasTest  [61] - TEST COMPLETE. 
Duration=6252.972574ms

We aren't using DFS namespace but rather a namespace native to our NAS device,
we have set the following parameters to enable DFS within JCIFS as a test:

Config.setProperty("jcifs.smb.client.dfs.disabled", "false");
Config.setProperty("jcifs.smb.client.dfs.strictView", "true");

These produced the same results.  Does anyone have any experience using JCIFS
with a non-DFS namespace?  Any thoughts on what might be happening here?

Best Regards,
Wes Ream




More information about the jcifs mailing list