<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I forgot to mention before&nbsp;that I am using jcifs-1.1.11. But the same problem happens when I upgrade to jcifs-1.3.11<BR>
&nbsp;<BR>
Does anyone have any ideas on what&nbsp;might be causing this&nbsp;UnknownHostException: Failed to negotiate with suitable domain controller error?<BR>&nbsp;<BR>
<HR id=stopSpelling>
From: venn.hardy@hotmail.com<BR>To: jcifs@lists.samba.org<BR>Date: Wed, 22 Jul 2009 17:13:10 +1030<BR>Subject: [jcifs] Changing domain controller causes "UnknownHostException: Faoled to negotiate with suitable domain controller"<BR><BR>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hello I have been using jcifs-1.1.11 in conjunction with a windows 2003 domain controller for some time now. Recently I have been doing some testing against a Windows 2008 domain controller and I have been having some problems with a line in my application: SmbSession.getChallengeForDomain();<BR><BR>That line causes this error:<BR>java.net.UnknownHostException: Failed to negotiate with a suitable domain controller for TESTDOMAIN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:132)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at mypackage.cas.web.flow.ntlm.ProcessType1NtlmMessageAction.doExecute(ProcessType1NtlmMessageAction.java:74)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:204)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.webflow.AnnotatedAction.execute(AnnotatedAction.java:139)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.webflow.ActionExecutor.execute(ActionExecutor.java:58)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Truncated. see log file for complete stacktrace<BR>&nbsp;<BR>Does anyone have any ideas on what might have changed on the windows server 2008 domain controller to make this error occur? And the steps I can take to make it work again?<BR>&nbsp;<BR>Thanks<BR>&nbsp;<BR>My jcifs.properties file looks like this (it connects to the new domain controller where I have been doing my testing):<BR>jcifs.smb.client.soTimeout=300000<BR>jcifs.smb.client.domain=TESTDOMAIN<BR>jcifs.netbios.cachePolicy=1200<BR>jcifs.netbios.wins=newdomaincontroller1<BR>jcifs.http.loadBalance=true<BR>jcifs.util.loglevel=3<BR>jcifs.resolveOrder=DNS,LMHOSTS,WINS,BCAST<BR>&nbsp;<BR>I did an ethereal packet sniff against the existing domain controller and this is what I get (it works):<BR><BR>With DOMAIN domain and pointing to existingdomaincontroller<BR>Source&nbsp;Destination&nbsp;Protocol&nbsp;Info<BR>MyPC&nbsp;existingdomaincontroller&nbsp;NBSS&nbsp;Session request, to *SMBSERVER&lt;20&gt; from JCIFS102_122_AA&lt;00&gt;<BR>existingdomaincontroller&nbsp;MyPC&nbsp;NBSS&nbsp;Positive session response<BR>MyPC&nbsp;existingdomaincontroller&nbsp;SMB&nbsp;Negotiate Protocol Request<BR>existingdomaincontroller&nbsp;MyPC&nbsp;SMB&nbsp;Negotiate Protocol Response<BR>MyPC&nbsp;existingdomaincontroller&nbsp;SMB&nbsp;Session Setup AndX Request, User: DOMAIN\RSTVHH; Tree Connect AndX, Path: <A>\\172.20.96.252\IPC$</A><BR>existingdomaincontroller&nbsp;MyPC&nbsp;SMB&nbsp;Session Setup AndX Response; Tree Connect AndX<BR>&nbsp;<BR>However when I point to the new test domain controller, I get "Negative session response, Called name not present".<BR>&nbsp;<BR>With TESTDOMAIN domain and pointing to newdomaincontroller&nbsp;&nbsp;&nbsp;<BR>Source&nbsp;Destination&nbsp;Protocol&nbsp;Info<BR>MyPC&nbsp;newdomaincontroller1&nbsp;NBSS&nbsp;Session request, to *SMBSERVER&lt;20&gt; from JCIFS102_122_BC&lt;00&gt;<BR>newdomaincontroller1&nbsp;MyPC&nbsp;NBSS&nbsp;Negative session response, Called name not present<BR>MyPC&nbsp;newdomaincontroller1&nbsp;NBSS&nbsp;Session request, to TESTDOMAIN&lt;20&gt; from JCIFS102_122_BC&lt;00&gt;<BR>newdomaincontroller1&nbsp;MyPC&nbsp;NBSS&nbsp;Negative session response, Called name not present<BR>MyPC&nbsp;newdomaincontroller2&nbsp;NBSS&nbsp;Session request, to *SMBSERVER&lt;20&gt; from JCIFS102_122_BC&lt;00&gt;<BR>newdomaincontroller2&nbsp;MyPC&nbsp;NBSS&nbsp;Negative session response, Called name not present<BR>MyPC&nbsp;newdomaincontroller2&nbsp;NBSS&nbsp;Session request, to TESTDOMAIN&lt;20&gt; from JCIFS102_122_BC&lt;00&gt;<BR>newdomaincontroller2&nbsp;MyPC&nbsp;NBSS&nbsp;Negative session response, Called name not present<BR><BR><BR>
<HR>
Click Here <A href="http://a.ninemsn.com.au/b.aspx?URL=http://dating.ninemsn.com.au/search/search.aspx?exec%3Dgo%26tp%3Dq%26gc%3D2%26tr%3D1%26lage%3D18%26uage%3D55%26cl%3D14%26sl%3D0%26dist%3D50%26po%3D1%26do%3D2%26trackingid%3D1046138%26r2s%3D1&amp;_t=773166090&amp;_r=Hotmail_Endtext&amp;_m=EXT">View photos of singles in your area</A><br /><hr />Check the daily blob for the latest on what's happening around the web <a href='http://windowslive.ninemsn.com.au/blog.aspx' target='_new'>What goes online, stays online</a></body>
</html>