SAP Knowledge Base Article - Preview

3532243 - Http Client throws InvalidCredentialsException

Symptom

  • Queues are blocked when the receiver adapter (e.g. HTTP, Successfactors, REST, OData) uses HTTP client.
  • Default traces are flooded with the error 
     "EXCEPTION] 
     com.sap.httpclient.exception.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: com.sap.httpclient.auth.UserPassCredentials 
     com.sap.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:165)"
  • Thread dumps show thread(s) with the below stack trace:  
     "at com.sap.httpclient.HttpMethodProcessor.authenticateHost(HttpMethodProcessor.java:244)
    at com.sap.httpclient.HttpMethodProcessor.authenticate(HttpMethodProcessor.java:204)
    at com.sap.httpclient.HttpMethodProcessor.executeMethod(HttpMethodProcessor.java:148)
    at com.sap.httpclient.HttpClient.executeMethod(HttpClient.java:298)
    at com.sap.httpclient.HttpClient.executeMethod(HttpClient.java:236)"
  • The target server returns an NTLM or Digest channel, i.e. the first response header contains the header: 
     WWW-Authenticate: NTLM
    or
    WWW-Authenticate: Digest


Read more...

Environment

SAP NetWeaver 7.50

Product

SAP NetWeaver 7.5

Keywords

NTLM, InvalidCredentialsException, HTTP Client, PI, PO, Process Orchestration, Process Integration  , KBA , BC-XI-CON-RST , Rest Adapter , BC-XI-CON-SUF , SuccessFactors Adapter , BC-XI-CON-SOP , SOAP Adapter , BC-XI-CON-HTP , HTTP Adapter J2EE Adapter Engine , BC-XI-CON-ODT , ODATA Adapter , BC-JAS-WEB , Web Container, HTTP, JavaMail, Servlets , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.