SAP Knowledge Base Article - Preview

3398094 - error: com.sap.aii.af.sdk.xi.oauth.json.JSONException: A JSONObject text must begin with '{'  when fetching Rest OAuth access token

Symptom

The rest adapter receiver communication channel is not able to retrieve OAuth access token.

The below error can be found in the channel's logs and in the default traces:

Error while processing Authorization request!
[EXCEPTION]
com.sap.aii.af.sdk.xi.oauth.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

In the HTTP traces collected as per SAP Note: 1514898 - Troubleshooting SAP Process Orchestration / Integration, the below response can be found:

HTTP_CLIENT : xxx REPLY: 
3cd.....{"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}..0..


Read more...

Environment

SAP NetWeaver 7.5

Product

SAP NetWeaver 7.5

Keywords

com.sap.aii.af.sdk.xi.oauth.json.JSONException, A JSONObject text must begin with '{' at 1 [character 2 line 1], Rest Adapter, OAuth, access token, refresh token , 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.