SAP Knowledge Base Article - Preview

2770865 - Neo application startup fails: Cannot generate OAuth 2.0 SAML Bearer Assertion because there is no user logged in the current thread

Symptom

An SAP Cloud Platform Neo application startup fails with this error:

#ERROR#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/com.<software component>]##anonymous#
#Exception sending context initialized event to listener instance of class com.<software component>.service.AppServletContextListenerjava.lang.IllegalArgumentException: Cannot generate OAuth 2.0 SAML Bearer Assertion because there is no user logged in the current thread.
at com.sap.core.connectivity.apiext.impl.authentication.assertion.AbstractAssertionProvider.getCurrentUserId(AbstractAssertionProvider.java:52)
at com.sap.core.connectivity.apiext.impl.authentication.assertion.AbstractAssertionProvider.getAssertionToken(AbstractAssertionProvider.java:28)
at com.sap.core.connectivity.apiext.impl.authentication.AuthenticationHeaderProviderImpl.getOAuth2SAMLBearerAssertionHeaders(AuthenticationHeaderProviderImpl.java:74)
at com.<software component>.connectivity.http.HTTPConnector.getAuthenticationHeaders(HTTPConnector.java:123)
at com.<software component>.connectivity.http.HTTPConnector.injectAuthenticationHeaders(HTTPConnector.java:78)
at com.<software component>.connectivity.http.HTTPConnector.executeGET(HTTPConnector.java:45)
...


Read more...

Environment

SAP Cloud Platform for the Neo Environment

Product

SAP Cloud Platform 1.0 ; SAP Cloud Platform Connectivity 2.0

Keywords

KBA , BC-NEO-CON , SAP Cloud Platform Destinations and On-premise Connectivity , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.