title: How do I use JCIFS with apache VFS to access an SMB URL - part 2?
body: <p>I had the same problem:
  <a href="https://stackoverflow.com/questions/11612690/how-do-i-use-jcifs-with-apache-vfs-to-access-an-smb-url">How do I use JCIFS with apache VFS to access an SMB URL?</a></p>
  
  <p>... after including commons-vfs-sandbox-2.1-SNAPSHOT.jar in the classpath I now get this exception:</p>
  
  <pre><code>Exception in thread "main" org.apache.commons.vfs2.FileSystemException: Could not determine the type of file "smb://10.10.18.210/CIFS/123/asd".
      at org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1522)
      at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:489)
      at org.apache.commons.vfs2.provider.AbstractFileObject.exists(AbstractFileObject.java:477)
      at VFSTest.main(VFSTest.java:19)
  Caused by: jcifs.smb.SmbAuthException: Logon failure: account currently disabled.
      at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:549)
      at jcifs.smb.SmbTransport.send(SmbTransport.java:667)
      at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:390)
      at jcifs.smb.SmbSession.send(SmbSession.java:218)
      at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
      at jcifs.smb.SmbFile.doConnect(SmbFile.java:911)
      at jcifs.smb.SmbFile.connect(SmbFile.java:954)
      at jcifs.smb.SmbFile.connect0(SmbFile.java:880)
      at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335)
      at jcifs.smb.SmbFile.exists(SmbFile.java:1417)
      at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1490)
      at org.apache.commons.vfs2.provider.smb.SmbFileObject.createSmbFile(SmbFileObject.java:118)
      at org.apache.commons.vfs2.provider.smb.SmbFileObject.doAttach(SmbFileObject.java:70)
      at org.apache.commons.vfs2.provider.AbstractFileObject.attach(AbstractFileObject.java:1505)
      ... 3 more
  </code></pre>
  
  <p>Please advice.</p>