[jcifs] Having problem with simply connecting with release 1.2.9

Dalton, Tim Daltontf at AGEDWARDS.com
Mon Apr 24 15:24:04 GMT 2006


The following beanshell code works just fine with 1.2.7:

import jcifs.smb.*; 
import java.io.*;

file = new SmbFile("smb://HOME;daltontf:xxxxxxx@tdms1.agedwards.com/root/home/daltontf/testsmb.txt");
smbout = new PrintStream(new SmbFileOutputStream(file, true));
smbout.println("This is a test - " + new java.util.Date().toString());
smbout.close();

But with release 1.2.9, I get:

java.lang.NullPointerException
        at jcifs.smb.SmbComSessionSetupAndX.writeParameterWordsWireFormat(SmbComSessionSetupAndX.java:58)
        at jcifs.smb.AndXServerMessageBlock.writeAndXWireFormat(AndXServerMessageBlock.java:94)
        at jcifs.smb.AndXServerMessageBlock.encode(AndXServerMessageBlock.java:65)
        at jcifs.smb.SmbTransport.doSend(SmbTransport.java:402)
        at jcifs.util.transport.Transport.sendrecv(Transport.java:70)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:602)
        at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:269)
        at jcifs.smb.SmbSession.send(SmbSession.java:225)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:147)
        at jcifs.smb.SmbFile.connect(SmbFile.java:791)
        at jcifs.smb.SmbFile.connect0(SmbFile.java:761)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1167)
        at jcifs.smb.SmbFile.length(SmbFile.java:2160)
        at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:129)
        at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)

Am I doing something fundamentally wrong ?

Thanks



-------------------------------------------------------------------------------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other 
than the recipient.

-------------------------------------------------------------------------------------

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list