[jcifs] Problem in jcifs

Tunir, Saha (TCS at Alcoa) Saha.Tunir at alcoa.com.au
Fri Nov 23 05:33:24 GMT 2007


Hi All

        I am using jcifs to do ntlm auth.

 

My web.xml is

 

<filter>

    <filter-name>NtlmHttpFilter</filter-name>

    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>

    <init-param>

        <param-name>jcifs.http.domainController</param-name>

        <param-value>147.154.5.207</param-value>

    </init-param>

    <init-param>

                        <param-name>jcifs.util.loglevel</param-name>

                        <param-value>2</param-value>

    </init-param>

    <init-param>

 
<param-name>jcifs.smb.client.responseTimeout</param-name>

                        <param-value>60000</param-value>

    </init-param>

    <init-param>

 
<param-name>jcifs.smb.client.soTimeout</param-name>

                        <param-value>60000</param-value>

    </init-param>

  </filter>

  <filter-mapping>

    <filter-name>NtlmHttpFilter</filter-name>

    <url-pattern>/*</url-pattern>

</filter-mapping>

 

I increase the timeout, because sometimes user cannot log into the
system and the situation persist upto 15 to 30 minute, and I guess that
it was due to socket time out, that's why I enabled the log also, this
reduced the no of occurrence of the problem. But still users get the
error sometimes. The exception is

 

jcifs.smb.SmbException: 
jcifs.util.transport.TransportException: Transport6 timedout waiting for
response to
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false
,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=26069,uid=0,
mid=94,wordCount=13,byteCount=119,andxCommand=0x75,andxOffset=180,snd_bu
f_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,passwordLength=24,u
nicodePasswordLength=24,capabilities=4180,accountName=wgw65rc,primaryDom
ain=AUSTRALIA_ASIA,NATIVE_OS=HP-UX,NATIVE_LANMAN=jCIFS]
      at jcifs.util.transport.Transport.sendrecv(Transport.java:76)
      at jcifs.smb.SmbTransport.send(SmbTransport.java:606)
      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 jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:182)
      at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestD
ispatcher.java:604)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(Servle
tRequestDispatcher.java:317)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndler.java:790)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:20
8)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:12
5)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leResourcePooledExecutor.java:192)
      at java.lang.Thread.run(Thread.java:534)

      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 jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:182)
      at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestD
ispatcher.java:604)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(Servle
tRequestDispatcher.java:317)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndler.java:790)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:20
8)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:12
5)
      at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leResourcePooledExecutor.java:192)
      at java.lang.Thread.run(Thread.java:534)

 

 

My application server is Oracle application server 9.0.4, situate in US
the Domain controller I use also is in same location, but the user who
get the errors are in Australia, that's why I guess that the problem
happens due to socket timeout. Can any one please shed more light into
the problem.

 

Tunir Saha

Alcoa ODC, TCS Kolkata, India

Phone: +91-33-2339-8596

Cell: +91-9433620901

email: saha.tunir at alcoa.com.au

 

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


More information about the jcifs mailing list