[jcifs] zero termination not found exception

Tony Pope tony.pope at divine.com
Wed Aug 21 07:51:57 EST 2002


I am running a simple example against a 2000 domain controller.  When I execute this call, one right after another, with two DIFFERENT 
sets of credentials, I get the following exception  (it works just fine when I use the same credentials over and over again):


the code:

  private void authenticate(String nme, String pwd, String dnme, String controller) {
    try{
      String url = "smb://" + dnme + ";" + nme + ":"+pwd+"@"+controller;
      SmbFile file = new SmbFile(url);
      file.list();


    }catch(Exception e){
        e.printStackTrace();
    }
  }





the exception:

java.lang.RuntimeException: zero termination not found

 at jcifs.smb.ServerMessageBlock.readString(ServerMessageBlock.java:283)

 at jcifs.smb.SmbComSessionSetupAndXResponse.readBytesWireFormat(SmbComSessionSetupAndXResponse.java:52)

 at jcifs.smb.AndXServerMessageBlock.readAndXWireFormat(AndXServerMessageBlock.java:256)

 at jcifs.smb.AndXServerMessageBlock.readWireFormat(AndXServerMessageBlock.java:94)

 at jcifs.smb.SmbTransport.run(SmbTransport.java:373)

 at java.lang.Thread.run(Thread.java:484)

20020820T154747 ERROR  main                 Timeout waiting for response from server. <name of my server>
jcifs.smb.SmbException: Timeout waiting for response from server. <name of server>/<ip of server>
....
.....
....







Am I missing something trivial here?

Thank you for the help,


Tony Pope
tony.pope at divine.com
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list