s4sdk

com.sap.cloud.sdk.frameworks.hystrix.ScpNeoHystrixBootstrapListenerjava.lang.IllegalStateException

别等时光非礼了梦想. 提交于 2019-12-24 01:59:45
问题 If I use ODataQueryBuilder in a servlet, I can call the servlet without any problem. If I incorporated the code in a method and call this method within a ServletContextListener, I got first the following error. 2018 02 27 13:17:09#+00#ERROR#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]##anonymous#fs-watcher#na#afc186d33#firstapp#web##na#na#na#na#Exception sending context initialized event to listener instance of class com.sap.cloud.sdk.frameworks.hystrix

S/4HANA Cloud SDK :com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces does not exist

∥☆過路亽.° 提交于 2019-12-23 15:29:18
问题 The build is fails due to lack of resource: class com.sap.cloud.sdk.s4hana.datamodel.odata.services.BusinessPartnerService Do we need to have/create this model classes in our project structure or will SDK take care of this static import? Error after executing: mvn clean install 回答1: There are likely several things happening in parallel here: Version 1.3.0 of the SAP S/4HANA Cloud SDK moved the entity classes of a service such as BusinessPartner to their own package, in your case, you now need

Generate OData VDM using S/4 HANA SDK leads to errors

故事扮演 提交于 2019-12-13 04:28:21
问题 I tried to generate VDM for the OData service provided by S/4 HANA Cloud (which is not in API hub). The generated VDM class shows errors, in particular, it has an error with UUID set and get method, and the TRUE property. I attached the metadata edmx.xml here. Ying This XML file does not appear to have any style information associated with it. The document tree is shown below. edmx.xml: <edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" xmlns:m="http://schemas.microsoft.com

Failed to get current user: no RequestContext available

时光毁灭记忆、已成空白 提交于 2019-12-12 14:26:16
问题 Getting below exception while fetching logged in user object using xsuaa approuter login User currentUser = UserAccessor.getCurrentUser(); I am to get currentUser object without using GuiceFilter, If I apply GuiceFilter then getting below exception. Any one Please suggest me how to get UserAccessor.getCurrentUser() with GuiceFilter com.sap.cloud.sdk.cloudplatform.security.user.exception.UserAccessException: Failed to get current user: no RequestContext available. Have you correctly configured

How to run downloaded App Router via Service Marketplace

試著忘記壹切 提交于 2019-12-12 13:38:52
问题 I downloaded XS_JSCRIPT14_10-70001363 package from Service Marketplace. Please suggest me how to run this App Router Login form with localhost I am trying with npm start command, but getting UAA service exception. How to handle from localhost. 回答1: When you download the approuter, either via npm or service marketplace you have to provide two additional files for a basic setup inside the AppRouter directory (besides package.json , xs-app.json , etc.). The default-services.json holds the

Not able to perform Deep Insert operation for API_PRODUCT_SRV Standard WhiteListed API using S/4 Hana Cloud SDK

落爺英雄遲暮 提交于 2019-12-11 05:26:16
问题 I have completed read and update operations on API_PRODUCT_SRV Service. Now while doing deep insert on API_PRODUCT_SRV (Product Entity-which has many associations) I am getting the following error. “errordetails”: [ { “code”: “API_PRD_MSG/004”, “message”: “Provide atleast one description for the product.”, “propertyref”: “”, “severity”: “error”, “target”: “” } ] I found this deep dive blog https://blogs.sap.com/2017/12/07/step-20-with-s4hana-cloud-sdk-create-and-deep-insert-with-the-virtual

Problem accessing S4Hana system when assessing via OAuth2Bearer Assertion authentication configure destination

随声附和 提交于 2019-12-11 02:22:28
问题 I've generated project via: mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-spring -DarchetypeVersion=LATEST I included S4Sdk jars and accessing S4Hana V2 API. The code works fine with Basic authentication but when I configure destination type as "OAuth2SAMLBEARER ASSERTION" I get the following error in CF logs when accessing S4Hana API's via .execute calls. : 2018-09-07T06:37:22.728+0000 [APP/PROC/WEB/0] ERR ... 1 more 2018-09-07T06:37

ERROR com.sap.xs2.security.commons.SAPOfflineTokenServices - Error in loading the JWT library

狂风中的少年 提交于 2019-12-10 17:48:52
问题 As per your Answer, I did set VCAP_SERVICES environment variable. My local environment: windows 10 TomEE Server: apache-tomee-webprofile-1.7.4 from http://tomee.apache.org/downloads.html Jars: security-commons-0.27.2 , java-container-security-api-0.27.2 , java-container-security-0.27.2 added from service market( XS_JAVA_1-70001362 package) Not working properly, Please suggest me what i missed. Getting below exception INFO Got from VCAP_SERVICES: clientid=my-clientid INFO Got from VCAP

POST Operation is failing with an error 405 Method not allowed

荒凉一梦 提交于 2019-12-08 03:30:30
问题 I developed a Java application using the S4SDK as described in the link below and deployed it to the SAP Cloud platform cloud foundry environment. https://blogs.sap.com/2017/12/07/step-20-with-s4hana-cloud-sdk-create-and-deep-insert-with-the-virtual-data-model-for-odata/ Then I accessed the application using POSTMAN tool. First, I made a GET request for application URL/businesspartners and fetched x-csrf-token . I used this x-csrf-token for POST operation for application URL/businesspartners

Invalid bean definition with name 'offlineTokenServices' defined in ServletContext resource [/WEB-INF/spring-security.xml]

十年热恋 提交于 2019-12-04 04:47:55
问题 Thank you for supporting to run the approuter package in locally. Now Getting below exception while running firstapp in locally. I add xs.appname xs.uaa.clientid xs.uaa.identityzone xs.uaa.verificationkey , but getting same issue only. Please suggest me which values have to set with Environment variable VCAP_SERVICES [localhost-startStop-1] ERROR com.sap.xs2.security.commons.SAPVcapServicesParser - Environment variable VCAP_SERVICES not set [localhost-startStop-1] WARN org.springframework.web