[jcifs] java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for ********

Ghouse, Sherjeel Sherjeel.Ghouse at molex.com
Fri Feb 24 19:35:08 GMT 2006


We implemented jCIFS NTLM authentication in production last month. There
were four outages of the Intranet site since then because of
java.net.UnknownHostException: Failed to negotiate with a suitable
domain controller for ******. The web application is stable most of the
time, except a few. The problem is happening during nights and the
production in far east  is impacted. This has become a show stopper for
us now.Here is the Environment info. 

Application Server : WebLogic 8.1 on Windows 2003 Server.

Web.xml configuration looks like

    <init-param>
      <param-name>jcifs.smb.client.domain</param-name>
      <param-value>********</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.netbios.wins</param-name>
      <param-value> I have listed 6 WINS here</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.util.loglevel</param-name>
      <param-value>1</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.smb.client.soTimeout</param-name>
      <param-value>40000</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.smb.client.responseTimeout</param-name>
      <param-value>30000</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.netbios.retryTimeout</param-name>
      <param-value>10000</param-value>
    </init-param>
    <init-param>
      <param-name>jcifs.netbios.soTimeout</param-name>
      <param-value>10000</param-value>
    </init-param>


Detailed Exception from Server logs

java.net.UnknownHostException: Failed to negotiate with a suitable
domain controller for **********
        at
jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:126)
        at jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:150)
        at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:6987)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3892)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2766)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)


Any help resolving this issue will greatly be appreciated


Sherjeel Ghouse



CONFIDENTIALITY NOTICE: This message (including any attachments) may contain Molex confidential information, protected by law. If this message is confidential, forwarding it to individuals, other than those with a need to know, without the permission of the sender, is prohibited.

This message is also intended for a specific individual. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message or taking of any action based upon it, is strictly prohibited. 

Chinese  Japanese

www.molex.com/confidentiality.html

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


More information about the jcifs mailing list