[jcifs] jcifs.smb.SmbException: The parameter is incorrect

Michael B Allen ioplex at gmail.com
Sat Feb 14 20:59:13 MST 2015


On Thu, Feb 12, 2015 at 9:18 AM, M. D. <moder at abv.bg> wrote:
>  Hello,
>
> We are occasionally getting the following exception when trying to store files on a remote NetApp Data Ontap Version 8.2 server:
>
> Caused by: jcifs.smb.SmbException: The parameter is incorrect.
>         at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:566)
>         at jcifs.smb.SmbTransport.send(SmbTransport.java:667)
>         at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:316)
>         at jcifs.smb.SmbSession.send(SmbSession.java:218)
>         at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
>         at jcifs.smb.SmbSession.logon(SmbSession.java:147)
>         at jcifs.smb.SmbSession.logon(SmbSession.java:140)
>
> We would appreciate any help or suggestion in how to deal with this issue.
>
> Client OS is Linux, using jcifs 1.3.17
> Configuration:
> jcifs.util.loglevel=4
> jcifs.smb.client.dfs.disabled=true
>
> We don't do any NTLM HTTP filtering
>
>
> SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=28060,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT LM 0.12]
> New data read: Transport1[s24020/10.10.18.210:0]
> 00000: FF 53 4D 42 72 00 00 00 00 98 01 C0 00 00 00 00  |яSMBr......А....|
> 00010: 00 00 00 00 00 00 00 00 00 00 9C 6D 00 00 01 00  |...........m....|
>
> SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC001,signSeq=0,tid=0,pid=28060,uid=0,mid=1,wordCount=17,byteCount=16,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPasswords=true,maxMpxCount=1124,maxNumberVcs=50,maxBufferSize=33028,maxRawSize=0,sessionKey=0x3552962B,capabilities=0x0000D2FC,serverTime=Mon Jan 01 01:00:00 CET 1601,serverTimeZone=0,encryptionKeyLength=8,byteCount=16,oemDomainName=TEST]
> treeConnect: unc=\\s24020\IPC$,service=?????
> sessionSetup: accountName=svc-it-edi-s24020,primaryDomain=Test
>
> SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=28060,uid=0,mid=2,wordCount=13,byteCount=119,andxCommand=0x75,andxOffset=180,snd_buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,lmHash.length=24,ntHash.length=24,capabilities=4180,accountName=svc-it-edi-s24020,primaryDomain=TEST,NATIVE_OS=Linux,NATIVE_LANMAN=jCIFS]
> SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=28060,uid=0,mid=0,wordCount=4,byteCount=35,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\s24020\IPC$,service=?????]
> New data read: Transport1[s24020/10.10.18.210:0]
> 00000: FF 53 4D 42 73 0D 00 00 C0 98 01 C0 00 00 00 00  |яSMBs...А..А....|
> 00010: 00 00 00 00 00 00 00 00 00 00 9C 6D 00 00 02 00  |...........m....|
> SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=The parameter is incorrect.,flags=0x0098,flags2=0xC001,signSeq=0,tid=0,pid=28060,uid=0,mid=2,wordCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nativeOs=,nativeLanMan=,primaryDomain=]

Hi M.D.,

I have no idea. Your debugging info shows Test\svc-it-edi-s24020
trying to mount \\s24020\IPC$. NetApp just doesn't like something
about that.

The way I would debug this sort of problem would be to get a Windows
client to do the same thing using exactly the same parameters and then
compare the two operations field-by-field in Wireshark. Or if it
sometimes works, get a log / trace of it working and compare the
fields and see if there is anything different that is meaningful.

Also, try searching the archives for "jcifs netapp parameter
incorrect". NetApp comes up once in a while. It's a little fickle. And
it's hard to test. I tried to run the simulator once but it was too
slow.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list