SAP Knowledge Base Article - Preview

3477388 - REST oAuth2.0 Get Token Errors from multiple servers during heavy load

Symptom

You use SAP PO and configured REST Sender channel to authenticate the incoming requests with OAuth 2.0.

During heavy load your requests to SAP PO REST Authorization server(http://<host>:<port>/RESTAdapter/OAuthServer) fail

In the default traces you may observe one of the following exceptions:


1) 500 Internal Server Error is returned for HTTP request [.../RESTAdapter/OAuthServer]:
  component [RESTServlet],
  web module [RESTAdapter],
  application [sap.com/com.sap.aii.adapter.rest.app],
  DC name [sap.com/com.sap.aii.adapter.rest.app],

[EXCEPTION]
javax.servlet.ServletException: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object returned from java.lang.Exception.getCause()
at com.sap.aii.adapter.rest.web.RESTServlet.service(RESTServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
.....

2) Catching com.sap.engine.frame.core.configuration.ConfigurationLockedException: Can not lock Configuration "apps/sap.com/com.sap.aii.adapter.rest.app/OAuth20Token" because it is already locked.
at com.sap.engine.core.configuration.impl.ServerEnvironment.lockConfiguration(ServerEnvironment.java:542)
at com.sap.engine.core.configuration.impl.cache.ConfigurationController.openConfiguration(ConfigurationController.java:922)
at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:1049)....


Read more...

Environment

SAP NetWeaver SP25 and higher releases

REST Receiver Channel

Keywords

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.