We are not able to make a subsequent API call from Java back-end code(cloud s4/sdk. maven tomee arch-type) with principal propagation destination.
Use-Case:
Initial API call is working fine as the request is getting triggered from UI5 via app-router to our java back end,since app-router will get the proper oauth-token (JWT) the identity is propagating to Java back-end code and same passed to S/4Hana system and we are getting back the ODATA response.
When we tried to make a subsequent API call from our Java back-end code we are getting 403(authorization exception). For which we have tried to incorporate JwtBasedRequestContextExecutor class, withJwt (),withXsuaaServiceJwt() we are getting the following error
com.sap.cloud.sdk.cloudplatform.exception.ShouldNotHappenException: Cannot set current context: RequestContext returned by com.sap.cloud.sdk.frameworks.hystrix.HystrixRequestContextFacade already initialized. Have you correctly configured a interface com.sap.cloud.sdk.cloudplatform.servlet.RequestContextFactory?
appreciate if you could help for this usecase.