[jcifs] NTLMHttpFilter fails from time to time

Rao, Sailesh Sailesh.Rao at 53.com
Tue Jan 30 21:37:54 GMT 2007


Our NTLM filter fails a few times every day with the a SocketException
(Too Many Open Files). Usually the error goes away if the user closes
their browser and launches a new IE window. Any clues as to what may be
causing this? We recently upgraded to jcifs 1.2_12 from 1.2_7. 
The platform details are:
------------------------------------------------------------------------
------------------------------------------------------------------------
----
WebSphere Platform 5.1 [ND 5.1.1.11 cf110622.05] [JDK 1.4.2.5
pj9ap32142-20060428] [BASE 5.1.1.11 cf110622.05] running with process
name SSE01_CELL\SSE01_w05\BRIT_APP_w05 and process id 647354
Host Operating System is AIX, version 5.2
Java version = J2RE 1.4.2 IBM AIX build ca142-20060421 (SR5) (JIT
enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
------------------------------------------------------------------------
---------------------------------------------------
Our web.xml looks like:

<filter>
		<filter-name>NtlmHttpFilter</filter-name>
		<display-name>NtlmHttpFilter</display-name>
		<description>NTLM Authentication filter</description>
		<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
		<init-param>
	        <param-name>jcifs.http.domainController</param-name>
	        <param-value>xxx</param-value>
	    </init-param>
	    <init-param>
	        <param-name>jcifs.smb.client.domain</param-name>
	        <param-value>xxx</param-value>
	    </init-param>
	    <init-param>
	        <param-name>jcifs.netbios.wins</param-name>
	        <param-value>xxx</param-value>
	    </init-param>
	    <init-param>
	        <param-name>jcifs.util.loglevel</param-name>
	        <param-value>3</param-value>
	    </init-param>
	</filter>
------------------------------------------------------------------------
-----------------------------------------------------
Error page exception
The server cannot use the error page specified for your application to
handle the Original Exception printed below. Please see the Error Page
Exception below for a description of the problem with the specified
error page.
Original Exception: 
Error Message: Filter [NtlmHttpFilter]: filter is unavailable.
Error Code: 500
Target Servlet: null
Error Stack: 
jcifs.smb.SmbException: 
jcifs.util.transport.TransportException 
java.net.SocketException: Too many open files 
at java.net.Socket.createImpl(Socket.java(Compiled Code)) 
at java.net.Socket.<init>(Socket.java(Compiled Code)) 
at java.net.Socket.<init>(Socket.java(Compiled Code)) 
at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:242) 
at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:299) 
at jcifs.util.transport.Transport.run(Transport.java:240) 
at java.lang.Thread.run(Thread.java:570) 
at jcifs.util.transport.Transport.run(Transport.java:256) 
at java.lang.Thread.run(Thread.java:570) 
at jcifs.smb.SmbTransport.connect(SmbTransport.java(Inlined Compiled
Code)) 
at jcifs.smb.SmbSession.getChallenge(SmbSession.java(Inlined Compiled
Code)) 
at jcifs.smb.SmbSession.getChallenge(SmbSession.java(Inlined Compiled
Code)) 
at jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java(Compiled
Code)) 
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java(Compiled
Code)) 
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
anceWrapper.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
ain.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java(C
ompiled Code)) 
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
ke(CacheableInvocationContext.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java(Compiled Code)) 
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java(Compiled Code)) 
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(
Compiled Code)) 
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java(Compiled
Code)) 
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


Thankyou
Sailesh
This e-mail transmission contains information that is confidential and may be privileged.
It is intended only for the addressee(s) named above. If you receive this e-mail in error,
please do not read, copy or disseminate it in any manner.  If you are not the intended 
recipient, any disclosure, copying, distribution or use of the contents of this information
is prohibited. Please reply to the message immediately by informing the sender that the 
message was misdirected. After replying, please erase it from your computer system. Your 
assistance in correcting this error is appreciated.



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


More information about the jcifs mailing list