[jcifs] Problem with combined Session Setup AndX Request and Tree Connect AndX Request

Michael B Allen mballen at erols.com
Thu Mar 21 06:58:59 EST 2002


On Wed, 20 Mar 2002 18:05:19 -0000
"Inggs, Andrew" <andrew.inggs at thus.net> wrote:

> Hello Everyone
> 
> Client: jCIFS 0.6.1, Solaris 8, Java SDK 1.3.1_02
> Server: NetApp Release 5.3.6R2
> 
> Works:
>     bash-2.03$ smbclient //192.168.0.20/omne ***** -W RIPPLE \
>     -U Administrator -c dir
> 
> Doesn't work:
>     bash-2.03$ java -classpath ../jcifs-0.6.1.jar:. -Ddomain=RIPPLE \
>     -Dusername=Administrator -Dpassword=***** -Dlog=ALL List \
>     smb://192.168.0.20/omne
> 
> I'm trying to list the contents of a share on the NetApp using the
> jCIFS List example program.  The Session Request and Negotiate
> Protocol Request are going fine, but I'm getting an error after the
> Session Setup AndX Request, which includes a Tree Connect AndX
> Request (see logs below).  The error has class ERRSRV (0x02) and
> code ERRerror "Non-specific error code" (0x01).  I can successfully
> do the equivalent with smbclient (from Samba 2.2.2).
> 
> Based on the packet dumps (using Ethereal), I can see the major
> difference between the smbclient session and the jCIFS session is
> that in the smbclient session the Session Setup AndX Request and
> Tree Connect AndX Request are performed separately.  This means,
> for example, that the UID is available for the Tree Connect, which
> is not the case for jCIFS.  It is my guess that this is causing
> the error.
> 
> Is there a way of forcing jCIFS to split the Session Setup AndX
> Request and the Tree Connect AndX Request?

Batching requests is a perfectly legitimate thing to do. According to
the spec certain fields that would be returned in the first message are
supposed to be used in the "AndX" message (e.g. the UID). I would rather
find out why NetApp is cranky about this but to get around the problem
for now (if that is the problem) try:

  useBatching = false

I'll take a closer look at the log traces when I get to work.

Chris,

Did you ever test jCIFS against NetApp at the interop lab?

Mike


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################




More information about the jcifs mailing list