[jcifs] zero termination not found exception

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Wed Aug 21 08:07:11 EST 2002


Well that's interesting. That shouldn't happen. I'll try some torture testing
and see if I can reproduce the issue. What version of jCIFS are you using?

> -----Original Message-----
> From:	Tony Pope [SMTP:tony.pope at divine.com]
> Sent:	Tuesday, August 20, 2002 5:52 PM
> To:	jcifs at lists.samba.org
> Subject:	[jcifs] zero termination not found exception
> 
>  
> 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 <mailto:tony.pope at divine.com>




More information about the jcifs mailing list