SAP Knowledge Base Article - Preview

3317959 - Cannot Retrieve OAuth Token - Error in HTTP Communication

Symptom

When fetching the OAuth Token from the provider, there is a failure.

From the REST Adapter detailed traces collected as outlined in SAP note 1514898 - Troubleshooting SAP Process Orchestration / Integration,  following log entry can be seen:

java.lang.RuntimeException: com.sap.aii.af.lib.util.UtilException: Key ID https://<URL> already exists in database: com.sap.sql.exception.OpenSQLIntegrityConstraintViolationException: Violation of PRIMARY KEY constraint <>'. Cannot insert duplicate key in object <>'. The duplicate key value is (<key>). 
OpenSQLExceptionCategories: [NON_TRANSIENT, INTEGRITY_CONSTRAINT_VIOLATION]
at com.sap.aii.af.sdk.xi.oauth.cache.OAuth20TokenCache.addToken(OAuth20TokenCache.java:81)


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration
  • SAP Process Orchestration

Product

SAP NetWeaver all versions ; SAP Process Integration all versions

Keywords

Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX, expires_in, OAuth Caching,INTEGRITY_CONSTRAINT_VIOLATION,OAuth20TokenCache
, KBA , BC-XI-CON-RST , Rest Adapter , 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.