[jcifs] zero termination not found exception
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Wed Aug 21 08:27:42 EST 2002
Tony,
I need to be able to reproduce the issue or there's nothing I can do. Can you use the -
log=ALL option and send me the output of the errant condition. If you had a Netmon or
Ethereal packet capture to go with this, that would be ideal. Also, does the below code
exhibit the error?
import jcifs.smb.*;
public class Test {
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();
}
}
public static void main( String argv[] ) throws Exception {
Test t = new Test();
t.authenticate( "user1", "pass1", "dom1", "175.54.32.578" );
t.authenticate( "user2", "pass2", "dom2", "175.54.32.578" );
}
}
> -----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