<p>Great, good to hear that the fix worked for you. I assume we get a +1 from you to include the patch into the main branch.</p>
<p>Gabor</p>
<div class="gmail_quote">Am 16.04.2012 23:58 schrieb "Simon Weatherill" <<a href="mailto:simon-samba@weatherill.org" target="_blank">simon-samba@weatherill.org</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Thank you, thank you, thank you!<br>
    <br>
    That fixed the problem. Thanks for the quick response.<br>
    <br>
    Simon<br>
    <br>
    On 4/16/2012 5:40 PM, Gabor Herr wrote:
    <blockquote type="cite">
      <p>Hi Simon,</p>
      <p>This sounds very similar to our jcifs problem reported in <a href="https://lists.samba.org/archive/jcifs/2012-March/009874.html" target="_blank">https://lists.samba.org/archive/jcifs/2012-March/009874.html</a></p>


      <p>Maybe you could give a try with the patch suggested in my post.
        It should also work with version 1.3.17.</p>
      <p>Good luck...</p>
      <p>Gabor</p>
      <p>Am 16.04.2012 21:59 schrieb "Simon Weatherill" <<a href="mailto:simon-samba@weatherill.org" target="_blank">simon-samba@weatherill.org</a>>:<br>
        ><br>
        > I've been seeing many errors that have a final stack trace
        of<br>
        > jcifs.smb.Dfs.resolve(Dfs.java:169) (jCIFS 1.3.17):<br>
        ><br>
        > java.lang.NullPointerException<br>
        >        at jcifs.smb.Dfs.resolve(Dfs.java:169)<br>
        >        at jcifs.smb.SmbFile.resolveDfs(SmbFile.java:671)<br>
        >        at jcifs.smb.SmbFile.getDfsPath(SmbFile.java:1536)<br>
        >        at ListFiles.main(ListFiles.java:45)<br>
        ><br>
        > I'm using a slightly modified ListFiles.java to test this.
        I have a list<br>
        > of 12608 directories, which all exist. If I invoke
        ListFiles for each<br>
        > directory separately, it completes fine. If I invoke it
        once for all<br>
        > directories, it will fail after reading about 3000
        directories. If I add<br>
        > a test to see if the path exists before calling
        listFiles(), the problem<br>
        > goes away. I don't know if it is an issue of timing or
        whether the<br>
        > exists() call does something that avoids the problem. Once
        the problem<br>
        > starts all remaining  directories have the same problem.<br>
        ><br>
        > I added a getDfsPath() call (and printed the result)
        thinking that might<br>
        > point in a particular direction. When I add this, it fails
        on the<br>
        > getDfsPath() before it gets to getFiles().<br>
        ><br>
        > We're using jCIFS in an RMI server that is always running.
        We can clear<br>
        > up the problem by restarting the server, but it comes back.<br>
        ><br>
        > Any ideas?<br>
        ><br>
        > Thanks,<br>
        > Simon<br>
      </p>
    </blockquote>
  </div>

</blockquote></div>