SAP Knowledge Base Article - Preview

3846443 - Error: OAuth2 token fetch fails with "Remote host terminated the handshake" when validating the remote source to SAC via CloudDataIntegrationAdapter

Symptom

  • Unable to validate or expand the remote source using CloudDataIntegrationAdapter to connect to SAP Analytics Cloud (SAC). 
    • Error: com.sap.hana.dp.adapter.sdk.AdapterException: [Adapter error] Invalid odata connection! Getting odata metadata failed because of org.apache.olingo.client.core.http.OAuth2Exception: Failed to fetch OAuth2 token! Remote host terminated the handshake.
  • Data Provisioning Agent (DP Agent) is managed by ECS team.
  • DP Agent framework.trc contains the following error.
    • [ERROR] ODataV4Handler | ODataV4Handler.connectToSource [] - Failed to get odata metadata from https://<hostname of CDI provider service>/api/v1/dataexport/administration/$metadata, remote exception: org.apache.olingo.client.api.http.HttpClientException: org.apache.olingo.client.core.http.OAuth2Exception: Failed to fetch OAuth2 token! Remote host terminated the handshake
    • [ERROR] DPFramework | WorkerThread.processRequest [] - com.sap.hana.dp.adapter.sdk.AdapterException: [Adapter error] Invalid odata connection! Getting odata metadata failed because of org.apache.olingo.client.core.http.OAuth2Exception: Failed to fetch OAuth2 token! Remote host terminated the handshake Context: Invalid odata connection! Getting odata metadata failed because of org.apache.olingo.client.core.http.OAuth2Exception: Failed to fetch OAuth2 token! Remote host terminated the handshake
                                      at com.sap.hana.dp.adapter.sdk.util.ExceptionUtil.newAdapterException(ExceptionUtil.java:227)
                                      at com.sap.hana.dp.odataadapter.ODataV4Handler.connectToSource(ODataV4Handler.java:180)
                                      at com.sap.hana.dp.odataadapter.ODataHandler.connectToSource(ODataHandler.java:273)
                                      at com.sap.hana.dp.dh.clouddataintegrationadapter.CloudDataIn...


Read more...

Environment

SAP HANA smart data integration (SDI)

Product

SAP HANA smart data integration 2.0

Keywords

OData V4, SAC Data Export Service, OAuth2Exception, TLS handshake, SSL, proxy, HTTP CONNECT, corporate network, outbound proxy, certificate chain, root CA, keystore, network timeout, authorization server, token service, SAC connectivity, CDI adapter, metadata retrieval, firewall , KBA , HAN-DP-SDI , SAP HANA smart data integration (SDI) , 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.