sap-cloud-sdk

Uploading custom jar to cx-server nexus

不打扰是莪最后的温柔 提交于 2020-02-03 10:07:53
问题 So, I am trying to set up a CI/CD pipeline with the s4sdk. I successfully completed all the steps descriped in this blog. Everything seems to be running smoothly, however my build is failing with the following error message: The following artifacts could not be resolved: com.sap.xs2.security:security-commons:jar:0.28.6, com.sap.xs2.security:java-container-security:jar:0.28.6, com.sap.xs2.security:java-container-security-api:jar:0.28.6, com.sap.security.nw.sso.linuxx86_64.opt:sapjwt.linuxx86

Uploading custom jar to cx-server nexus

倖福魔咒の 提交于 2020-02-03 10:07:03
问题 So, I am trying to set up a CI/CD pipeline with the s4sdk. I successfully completed all the steps descriped in this blog. Everything seems to be running smoothly, however my build is failing with the following error message: The following artifacts could not be resolved: com.sap.xs2.security:security-commons:jar:0.28.6, com.sap.xs2.security:java-container-security:jar:0.28.6, com.sap.xs2.security:java-container-security-api:jar:0.28.6, com.sap.security.nw.sso.linuxx86_64.opt:sapjwt.linuxx86

Uploading custom jar to cx-server nexus

心不动则不痛 提交于 2020-02-03 10:06:47
问题 So, I am trying to set up a CI/CD pipeline with the s4sdk. I successfully completed all the steps descriped in this blog. Everything seems to be running smoothly, however my build is failing with the following error message: The following artifacts could not be resolved: com.sap.xs2.security:security-commons:jar:0.28.6, com.sap.xs2.security:java-container-security:jar:0.28.6, com.sap.xs2.security:java-container-security-api:jar:0.28.6, com.sap.security.nw.sso.linuxx86_64.opt:sapjwt.linuxx86

Fail to start application locally after enabling Spring Security

坚强是说给别人听的谎言 提交于 2019-12-24 06:22:21
问题 I am trying to enable spring security to protect my backend services in SDK archetype project based on Spring according to the tutorial https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/. After I start the application locally, an error message shows up - "Environment variable VCAP_SERVICES not set". Below is the stack trace of this error. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating

Remote Debugging a node.js application on SAP Cloud Foundry

为君一笑 提交于 2019-12-23 03:42:37
问题 We have hosted several node.js express services on SAP Cloud Foundry. Since we can't get any further with this problem and maybe others are faced with this problem, here is the explicit question about this: How can you remotely debug a node.js application (our own) hosted on SAP Cloud Foundry? In our case, we have an express service that uses the SAP Cloud SDK (v1.6.1) to provide various data from SAP Cloud and OnPremise. 回答1: I'm not sure whether this is the best approach, but it works for

How to run the SAP Cloud SDK Pipeline on Kubernetes

不羁岁月 提交于 2019-12-13 00:34:49
问题 Currently, I am trying to set up the SAP Cloud SDK on a Kubernetes cluster using the tutorial found here: https://blogs.sap.com/2018/09/26/autoscaling-of-sap-s4hana-cloud-sdk-continuous-delivery-toolkit-on-kubernetes/ The setup works fine and I am able to configure and start a pipeline. It also spawns and connects successfully to a new POD running as an agent. However, during the mvn clean install step, a container execution is done on the POD, but this for some unkown reason fails. I

VDM for Integration Tests

旧巷老猫 提交于 2019-12-11 06:27:00
问题 I had used VDM in order to consumer external ODATA service. It is working well. Now I am trying to use the VDM for Integration Testing in order to test the created ODATA service using CAP Model. I was using restTemplate.exchange() in the Integration Testing to test the ODATA service. It was working well. Now I had decided to go with SDK VDM approach. The VDM files were generated successfully. But while trying to run the Integration Tests, it fails with an exception com.sap.cloud.sdk

Cannot access S/4HANA on Premise system via Cloud Connector using SAP Cloud SDK for JavaScript

佐手、 提交于 2019-12-11 05:56:41
问题 I'm trying to access an S/4HANA on Premise system via the Cloud Connector and SAP Cloud Platform connectivity service using the SAP Cloud SDK for JavaScript (version 1.5.0). In detail, I have Cloud Connector connectivity service xsuaa service instance Application Router (app-router) destination destination service which all work as expected. These preconditions are explained by different tutorials (https://blogs.sap.com/2019/04/02/a-do-it-yourself-at-home-guide-how-to-connect-a-node.js-app-on

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

Creating ErpConfigContext threw exception

吃可爱长大的小学妹 提交于 2019-12-01 18:40:13
问题 I am trying to use the S/4HANA SDK to call the CompanyCode OData VDM service but if I do this in the Cloud Foundry environment I'm getting the attached error. I have been using the SDK before but this did not happened. Can you please help me here? Code: public List<CompanyCode> findAll() { try { return compCodeService.getAllCompanyCode().execute(erp()) .stream() .map(this::toCompCode) .collect(Collectors.toList()); } catch (ODataException e) { throw SapException.create(e.getMessage()); } }