Open micheljung opened 5 years ago
I am facing same issue "KrbException: Server not found in Kerberos database (7) - Server not found in Kerberos database"
Though i am using org.apache.httpcomponents:httpclient:4.5.10. What could be the issue ?
JDK: 1.8 Spring Boot: 2.1.7.RELEASE
Regards, Rajib
Hi,
I have fixed it. It was actually not a Spring issue. It was due to wrong server ticket name generated due to mismatch hostname (Canonical ) on aws platform. When i was calling it using external DNS name, it was working but when i deployed the client to aws instance where the server instance also running, it was creating ticket name using internal DNS name which different than the ticket creating using external DNS name. But the server ticket stored in KDC database was generated using external DNS name of the server. After stoping generating canonical hostname problem is resolved.
Thank you.
@rajibhalder I am facing the same issue. Can u please elaborate how did you stop generating canonical hostname in the servers.
This is related to https://bugs.java.com/bugdatabase/view_bug?bug_id=8210821 If you can upgrade Java to version 12 or more, you should be fine.
The current version
1.0.1.RELEASE
usesorg.apache.httpcomponents:httpclient:4.3.3
. With it, callingrestTemplate.getForObject()
results in:However, starting with
org.apache.httpcomponents:httpclient:4.4
this error is no longer thrown. As far as I can tell, this is been fixed with https://issues.apache.org/jira/browse/HTTPCLIENT-1541