[jcifs] JCIFS and Windows 7

Sudhakar M Santhanam sudhakarm at hexaware.com
Thu Apr 29 05:44:58 MDT 2010


I am currently using JCIFS 1.3.14 and I am encountering this problem 'The parameter is incorrect.'  I am using a Servlet filter to intercept request from browsers to authenticate users using JCIFS. While this works perfectly fine on Windows XP without any problems, the filter fails to authenticate users if requests come from browsers on Windows 7.

I have given below the snap shot of the stack trace from the server logs.

Does anyone know a solution to this problem?


-------------------------Stack Trace of the web server-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

NameQueryRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=false,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=NA<1C>,questionType=NB,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
00000: 00 01 01 00 00 01 00 00 00 00 00 00 20 45 4F 45  |............ EOE|
00010: 42 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43  |BCACACACACACACAC|
00020: 41 43 41 43 41 43 41 43 41 43 41 42 4D 00 00 20  |ACACACACACABM.. |
00030: 00 01                                            |..              |

NetBIOS: new data read from socket
NameQueryResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=true,isRecurDesired=true,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=NA<1C>,recordType=NB,recordClass=IN,ttl=0,rDataLength=150,addrEntry=[Ljcifs.netbios.NbtAddress;@d57bcb]
00000: 00 01 85 80 00 00 00 01 00 00 00 00 20 45 4F 45  |............ EOE|
00010: 42 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43  |BCACACACACACACAC|
00020: 41 43 41 43 41 43 41 43 41 43 41 42 4D 00 00 20  |ACACACACACABM.. |
00030: 00 01 00 00 00 00 00 96 80 00 81 E0 48 0E 80 00  |...........àH...|
00040: 81 DC 82 79 80 00 81 DC 82 7A 80 00 81 E1 64 18  |.Ü.y...Ü.z...ád.|
00050: 80 00 C0 3E 14 51 80 00 C0 3F 96 26 80 00 C0 3C  |..À>.Q..À?.&..À<|
00060: 25 96 80 00 81 E0 48 0C 80 00 81 E0 48 0E 80 00  |%....àH....àH...|
00070: C0 3C 9B EB 80 00 81 E0 4C 23 80 00 C0 3E 46 1A  |À<.ë...àL#..À>F.|
00080: 80 00 C0 3E ED 37 80 00 81 E0 A0 13 80 00 C0 3C  |..À>í7...à ...À<|
00090: AE CF 80 00 81 E0 C0 4B 80 00 C0 3C ED 1E 80 00  |®Ï...àÀK..À<í...|
000A0: C0 3C E8 2D 80 00 C0 3E 6A 34 80 00 81 DD FC 1C  |À<è-..À>j4...Ýü.|
000B0: 80 00 C0 3E 06 96 80 00 C0 3E 06 13 80 00 81 E0  |..À>....À>.....à|
000C0: 08 8C 80 00 81 E0 98 0B 80 00 C0 3E D7 1F        |.....à....À>×.  |

SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=385,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT LM 0.12]
New data read: Transport1[NA<1C>/129.224.72.14:0<http://129.224.72.14:0>]
00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |ÿSMBr......À....|
00010: 00 00 00 00 00 00 00 00 00 00 81 01 00 00 01 00  |................|
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=385,uid=0,mid=1,wordCount=17,byteCount=40,wordCount=17,dialectIndex=0,securityMode=0x7,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Thu Apr 29 09:18:24 GMT 2010,serverTimeZone=300,encryptionKeyLength=8,byteCount=40,oemDomainName=NA]

treeConnect: unc=\\NA\IPC$,service=?????
sessionSetup: accountName=ArjunaV,primaryDomain=EU
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=385,uid=0,mid=3,wordCount=13,byteCount=315,andxCommand=0x75,andxOffset=376,snd_buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,lmHash.length=24,ntHash.length=230,capabilities=4180,accountName=ArjunaV,primaryDomain=EU,NATIVE_OS=Windows 2003,NATIVE_LANMAN=jCIFS]
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=385,uid=0,mid=0,wordCount=4,byteCount=27,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\NA\IPC$,service=?????]
New data read: Transport1[NA<1C>/129.224.72.14:0<http://129.224.72.14:0>]
00000: FF 53 4D 42 73 0D 00 00 C0 98 03 C0 00 00 00 00  |ÿSMBs...À..À....|
00010: 00 00 00 00 00 00 00 00 00 00 81 01 00 00 03 00  |................|
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=The parameter is incorrect.,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=385,uid=0,mid=3,wordCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nativeOs=,nativeLanMan=,primaryDomain=]
<Apr 29, 2010 9:21:29 AM GMT> <Error> <HTTP> <BEA-101019> <[ServletContext(id=25885120,name=PORTAL,context-path=)] Servlet failed with IOException
jcifs.smb.SmbException: The parameter is incorrect.
 at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545)
 at jcifs.smb.SmbTransport.send(SmbTransport.java:645)
 at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:322)
 at jcifs.smb.SmbSession.send(SmbSession.java:224)
 at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
 at jcifs.smb.SmbSession.logon(SmbSession.java:153)
 at jcifs.smb.SmbSession.logon(SmbSession.java:146)
 at sso.servlets.NtlmFilterBase.negotiate(NtlmFilterBase.java:180)
 at sso.servlets.SSOFilter.doFilter(SSOFilter.java:107)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7060)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
 at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
 at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2756)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>

Sudhakar M Santhanam, PMP®
TTHL Delivery
Mob: +91 805 600 5414 | sudhakarm at hexaware.com

[cid:image001.png at 01CAE7B6.4C0599A0]<http://www.hexaware.com/>

H5, Sipcot IT Park, Navallur Post, Kancheepuram District,
Chennai - 603103 | INDIA | Tel.: 91-44-47451376

[cid:image002.jpg at 01CAE7B6.4C0599A0]<http://twitter.com/hexawaretech>







www.hexaware.com<http://www.hexaware.com/>


________________________________
Please do not print this email unless it is absolutely necessary.

This e-mail communication and any attachments to it are confidential and privileged to Hexaware and are strictly intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message, you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited and may be unlawful.

Please notify the sender immediately and destroy all copies of this message along with all attachments thereto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20100429/6ff82057/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2589 bytes
Desc: image001.png
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20100429/6ff82057/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3540 bytes
Desc: image002.jpg
URL: <http://lists.samba.org/pipermail/jcifs/attachments/20100429/6ff82057/attachment-0001.jpg>


More information about the jCIFS mailing list