SAP Knowledge Base Article - Public

2101297 - OAuth2AccessDeniedException: Error Requesting Access Token When Recording Learning

Symptom

  • E-signature is enabled in Learning.
  • In an integrated instance, java errors are encountered when recording learning using E-signature.

Please report the following error to your system administrator:

org.springframework.security.oauth2.consumer.OAuth2AccessDeniedException: Error requesting access token. at com.plateau.tms.oauth2.consumer.impl.SFTokenServerClientCredentialsProfile.retrieveToken(SFTokenServerClientCredentialsProfile.java:106) Caused by: org.springframework.web.client.HttpClientErrorException: 403 Forbidden at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:75)

or

StackTrace is org.springframework.security.oauth2.consumer.OAuth2AccessDeniedException: Error requesting access token. at com.plateausystems.elms.framework.oauth2.consumer.impl.SFTokenServerClientCredentialsProfile.retrieveToken(SFTokenServerClientCredentialsProfile.java:106)
at com.plateausystems.elms.framework.oauth2.consumer.impl.SFTokenServerClientCredentialsProfile.obtainNewAccessToken(SFTokenServerClientCredentialsProfile.java:80)

Caused by: org.springframework.web.client.ResourceAccessException: I/O error: sf-rest-api-server; nested exception is java.net.UnknownHostException: sf-rest-api-server

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP SuccessFactors Learning

Cause

There is a mismatch between the Learning User ID, Learning Admin ID and BizX ID or the Learning User ID is mapped to a different Learning Admin ID.

Resolution

Please make sure that the Learning User ID, Learning Admin ID and BizX ID are all the same. For example: suppose BizX ID is "AdminSF", then in this case, the Learning User ID and Learning Admin should be "AdminSF" as well.

Note: If issue still occurs, support team may open an internal ticket with the Operations Team to clear cache memory.

Keywords

lms, learning, COSD-11078, COSD-28426, COSD-25092, esig, electronic, signature, error, token, request, ResourceAccessException, api
, KBA , sf lms , sf learning legacy , LOD-SF-LMS-ESG , E-Signature , LOD-SF-LMS , Learning Management System , How To

Product

SAP SuccessFactors Learning all versions