[jcifs] JCIF Tomcat Cluster Error

Ravi_Varanasi at Countrywide.Com Ravi_Varanasi at Countrywide.Com
Thu Jan 18 21:49:25 GMT 2007


Environment :
Web Server : Apache (using load balancer)
Tomcat : Servlet container (two instances) - cluster setup with session
replication.
JCIF's version : 1.2.6

Get the following error message when trying to log in the webapp.

Jan 18, 2007 2:47:35 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
Jan 18, 2007 2:47:35 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 18, 2007 2:47:35 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/156  config=null
Jan 18, 2007 2:47:35 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 18, 2007 2:47:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 57687 ms
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x001
8,flags2=0xC003,signSeq=0,tid=0,pid=32706,uid=0,mid=1,wordCount=0,byteCount=12,w
ordCount=0,dialects=NT LM 0.12]
00000: FF 53 4D 42 72 00 00 00 00 18 03 C0 00 00 00 00  | SMBr......└....|
00010: 00 00 00 00 00 00 00 00 00 00 C2 7F 00 00 01 00  |..........┬.....|
00020: 00 0C 00 02 4E 54 20 4C 4D 20 30 2E 31 32 00     |....NT LM 0.12. |

New data read: Transport1[CFCPDC.ten-net.net/10.1.197.203: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 C2 7F 00 00 01 00  |..........┬.....|

byteCount=30 but readBytesWireFormat returned 14
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,fla
gs=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=32706,uid=0,mid=1,wordCount=17,byteC
ount=30,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPass
words=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,se
ssionKey=0x00000000,capabilities=0x0000F3FD,serverTime=Thu Jan 18 14:48:04
CST 2
007,serverTimeZone=480,encryptionKeyLength=8,byteCount=30,encryptionKey=0xE33573
884ADB54DE,oemDomainName=CFC]
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 C2 7F 00 00 01 00  |..........┬.....|
00020: 11 00 00 03 32 00 01 00 04 41 00 00 00 00 01     |....2....A..... |

2007-01-18 14:48:05 DEBUG ProviderManager, http-8081-Processor25:183 -
Authentic
ation attempt using
org.acegisecurity.providers.smb.SmbNtlmAuthenticationProvide
r
2007-01-18 14:48:05 ERROR SmbNtlmAuthenticationProvider,
http-8081-Processor25:9
1 - ntlm token CFC\RVARANAS
2007-01-18 14:48:05 ERROR SmbNtlmAuthenticationProvider,
http-8081-Processor25:9
2 - domain controller CFCPDC.ten-net.net/10.1.197.203
treeConnect: unc=\\CFCPDC.ten-net.net\IPC$,service=?????
sessionSetup: accountName=RVARANAS,primaryDomain=CFC
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCo
de=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=32706,uid=0,mid=2,wordCount=
13,byteCount=109,andxCommand=0x75,andxOffset=170,snd_buf_size=16644,maxMpxCount=
10,VC_NUMBER=1,sessionKey=0,passwordLength=24,unicodePasswordLength=24,capabilit
ies=4180,accountName=RVARANAS,primaryDomain=CFC,NATIVE_OS=Windows
XP,NATIVE_LANM
AN=jCIFS]
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode
=0,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=32706,uid=0,mid=0,wordCount=4,
byteCount=59,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,
password=,path=\\CFCPDC.ten-net.net\IPC$,service=?????]
00000: FF 53 4D 42 73 00 00 00 00 18 03 C0 00 00 00 00  | SMBs......└....|
00010: 00 00 00 00 00 00 00 00 00 00 C2 7F 00 00 02 00  |..........┬.....|
00020: 0D 75 00 AA 00 04 41 0A 00 01 00 00 00 00 00 18  |.u.¬..A.........|
00030: 00 18 00 00 00 00 00 54 10 00 00 6D 00 63 DE 14  |.......T...m.c▐.|
00040: E9 B2 E3 6C F5 31 1E EF 8B 8F 69 C8 9D 00 D7 D4  |Θ▓πl⌡1.∩..i╚..╫╘|
00050: 18 21 21 5F 5A 34 44 08 71 ED 5D F3 08 96 33 AA  |.!!_Z4D.qφ]≤..3¬|
00060: 09 F9 CE 27 02 F4 E7 8E 00 78 28 C1 AA 00 52 00  |.∙╬'.⌠τ..x(┴¬.R.|
00070: 56 00 41 00 52 00 41 00 4E 00 41 00 53 00 00 00  |V.A.R.A.N.A.S...|
00080: 43 00 46 00 43 00 00 00 57 00 69 00 6E 00 64 00  |C.F.C...W.i.n.d.|
00090: 6F 00 77 00 73 00 20 00 58 00 50 00 00 00 6A 00  |o.w.s. .X.P...j.|
000A0: 43 00 49 00 46 00 53 00 00 00 04 FF 00 00 00 00  |C.I.F.S.... ....|
000B0: 00 01 00 3B 00 00 5C 00 5C 00 43 00 46 00 43 00  |...;..\.\.C.F.C.|
000C0: 50 00 44 00 43 00 2E 00 74 00 65 00 6E 00 2D 00  |P.D.C...t.e.n.-.|
000D0: 6E 00 65 00 74 00 2E 00 6E 00 65 00 74 00 5C 00  |n.e.t...n.e.t.\.|
000E0: 49 00 50 00 43 00 24 00 00 00 3F 3F 3F 3F 3F 00  |I.P.C.$...?????.|

New data read: Transport1[CFCPDC.ten-net.net/10.1.197.203:0]
00000: FF 53 4D 42 73 6D 00 00 C0 98 03 C0 00 00 00 00  | SMBsm..└..└....|
00010: 00 00 00 00 00 00 00 00 00 00 C2 7F 00 00 02 00  |..........┬.....|

SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=false
,errorCode=Logon failure: unknown user name or bad
password.,flags=0x0098,flags2
=0xC003,signSeq=0,tid=0,pid=32706,uid=0,mid=2,wordCount=0,byteCount=0,andxComman
d=0xFF,andxOffset=0,isLoggedInAsGuest=false,nativeOs=,nativeLanMan=,primaryDomai
n=]
00000: FF 53 4D 42 73 6D 00 00 C0 98 03 C0 00 00 00 00  | SMBsm..└..└....|
00010: 00 00 00 00 00 00 00 00 00 00 C2 7F 00 00 02 00  |..........┬.....|
00020: 00 00 00                                         |...             |

jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad
password.
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:500)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:611)
        at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:277)
        at jcifs.smb.SmbSession.send(SmbSession.java:233)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:154)
        at jcifs.smb.SmbSession.logon(SmbSession.java:169)
        at jcifs.smb.SmbSession.logon(SmbSession.java:162)
        at
org.acegisecurity.providers.smb.AbstractSmbAuthenticationProvider.per
formAuthentication(AbstractSmbAuthenticationProvider.java:94)
        at
org.acegisecurity.providers.smb.AbstractSmbAuthenticationProvider.aut
henticate(AbstractSmbAuthenticationProvider.java:78)
        at
org.acegisecurity.providers.ProviderManager.doAuthentication(Provider
Manager.java:188)
        at
org.acegisecurity.AbstractAuthenticationManager.authenticate(Abstract
AuthenticationManager.java:45)
        at
org.acegisecurity.ui.ntlm.NtlmProcessingFilter.doFilter(NtlmProcessin
gFilter.java:242)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:193)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa
lve.java:346)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)


JCIF properties from log :

#JCIFS PROPERTIES
#Thu Jan 18 14:47:12 CST 2007
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=C\:\\jdk1.5.0_06\\jre\\bin
java.vm.version=1.5.0_06-b05
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
tomcat.util.buf.StringCache.byte.enabled=true
file.encoding.pkg=sun.io
java.util.logging.config.file=C\:\\apache-tomcat-5.5.20
\\conf\\logging.propertie
s
user.country=US
sun.os.patch.level=Service Pack 2
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C\:\\apache-tomcat-5.5.20\\bin
java.runtime.version=1.5.0_06-b05
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C\:\\apache-tomcat-5.5.20\\common\\endorsed
os.arch=x86
java.io.tmpdir=C\:\\apache-tomcat-5.5.20\\temp
line.separator=\r\n
java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
java.util.logging.manager=org.apache.juli.ClassLoaderLogManager
java.naming.factory.url.pkgs=org.apache.naming
os.name=Windows XP
sun.jnu.encoding=Cp1252
java.library.path=C\:\\jdk1.5.0
_06\\bin;.;C\:\\WINNT\\system32;C\:\\WINNT;C\:\\W
INNT\\system32;C\:\\WINNT;C\:\\WINNT\\System32\\Wbem;P\:\\Notes;C\:\\Program
 Fil
es\\Common Files\\OpSession\\Shared\\;C\:\\Program Files\\Common
Files\\OpSessio
n\\Viewer Shared\\;C\:\\Program Files\\IBM\\Client
Access\\Emulator\\;C\:\\Progr
am Files\\IBM\\Client Access\\Shared\\;C\:\\Program Files\\IBM\\Client
Access\\;
C\:\\Program Files\\Subversion\\bin;C\:\\Program
Files\\QuickTime\\QTSystem\\;C\
:\\oss\\maven-2.0.4\\bin
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Client Compiler
os.version=5.1
user.home=C\:\\Documents and Settings\\rvaranas
user.timezone=America/Chicago
catalina.useNaming=true
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.specification.version=1.5
file.encoding=Cp1252
jcifs.util.loglevel=9
catalina.home=C\:\\apache-tomcat-5.5.20
user.name=rvaranas
java.class.path=C\:\\jdk1.5.0_06\\lib\\tools.jar;C\:\\apache-tomcat-5.5.20
\\bin\
\bootstrap.jar
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache
.tomcat.,org.apache.jasper.
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=C\:\\jdk1.5.0_06\\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.5.0_06
java.ext.dirs=C\:\\jdk1.5.0_06\\jre\\lib\\ext
sun.boot.class.path=C\:\\jdk1.5.0_06\\jre\\lib\\rt.jar;C\:\\jdk1.5.0
_06\\jre\\li
b\\i18n.jar;C\:\\jdk1.5.0_06\\jre\\lib\\sunrsasign.jar;C\:\\jdk1.5.0
_06\\jre\\li
b\\jsse.jar;C\:\\jdk1.5.0_06\\jre\\lib\\jce.jar;C\:\\jdk1.5.0
_06\\jre\\lib\\char
sets.jar;C\:\\jdk1.5.0_06\\jre\\classes
java.vendor=Sun Microsystems Inc.
server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
catalina.base=C\:\\apache-tomcat-5.5.20
file.separator=\\
java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar
,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,o
rg.apache.jasper.,sun.beans.
sun.desktop=windows
sun.cpu.isalist=



Ravi Varanasi
Developer, Sr
AT - Office of Architecture


                                                     
                      1000 Coit Road                 
                      Plano, TX 75075                
                                                     





(Embedded image moved to file: pic25347.gif)Countrywide Home Loans
======================================================================
Confidentiality Notice: The information contained in and transmitted with this communication is strictly confidential, is intended only for the use of the intended recipient, and is the property of Countrywide Financial Corporation or its affiliates and subsidiaries.  If you are not the intended recipient, you are hereby notified that any use of the information contained in or transmitted with the communication or dissemination, distribution, or copying of this communication is strictly prohibited by law.  If you have received this communication in error, please immediately return this communication to the sender and delete the original message and any copy of it in your possession.
======================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic25347.gif
Type: image/gif
Size: 3125 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20070118/a1e92242/pic25347.gif


More information about the jcifs mailing list