-
Notifications
You must be signed in to change notification settings - Fork 17
Material description fetching failing #769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @i307698, you are using our Cloud SDK on version We can continue to help and support you once you updated. In the best case scenario, the problem is solved through the update. Best, |
Hello @Jonas-Isr Here is the branch where I pushed my changes- Please let me know if I am missing something. |
Hi @i307698, what exactly were you doing when you tried generating the OData client? Did you follow the steps outlined here and/or here? I looked into the repository you linked and saw that you are still using version Additionally, we strongly advice to not mix different version of our SDK in the same application. It might lead to unexpected behaviour or errors. I saw that you are using three different versions ( I hope this helps! |
Hi @Jonas-Isr , What I intended to do was to generate classes like "ECCDescriptionService" which were provided as a part of s4hana-all dependency. But now that this dependancy has been removed, I was trying to generate these classes so that we can develop a typed data client around it. I have made the changes to the same branch and have made it clean but I have still not got the classes that belonged to "com.sap.qm.psp.models" package. https://github.tools.sap/DigitalManufacturing/psp-core-ms/tree/material_desc Thanks, |
It looks like you are not discussing the originally observed issue
Now you are talking about generator plugin usage. Please create a new issue, if you face problems. But make sure you read everything necessary here in our documentation: https://sap.github.io/cloud-sdk/docs/java/features/odata/vdm-generator I briefly looked into your branch.
Maybe this helps already, and we can close this issue. If you still have questions regarding code generation, unfortunately I will not give further instructions until a dedicated issue has been created. |
Describe the Bug
We use com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultProductMasterService to fetch the material description for a particular material. This call is failing with an error message saying that "communication failed".__
We got this response from your team and changed accordingly.
Your original ticket did not mention kubernetes.
Have you considered our documentation on Gardener..?
https://sap.github.io/cloud-sdk/docs/java/environments/kubernetes-gardener
or Kyma..?
https://sap.github.io/cloud-sdk/docs/java/environments/kubernetes-kyma
Please open a new issue.
After implementing connectivity proxy and binding it to our app, I tried the API which was supposed to get the material description again.
It gave me this problem -
{"msg":"S4 Material description fetch failed with error: com.sap.cloud.sdk.cloudplatform.thread.exception.ThreadContextExecutionException: com.sap.cloud.sdk.cloudplatform.connectivity.exception.HttpClientInstantiationException: com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Unable to create an HttpClient from the provided destination. The destination is supposed to target an on-premise system but lacks the correct proxy configuration. Please check the application logs for further details.","tenant_id":"ac76728d-e6de-493a-8eb7-209c1eb1cf84","level":"INFO","written_ts":"1742797238460961395","logger":"com.sap.qm.psp.extensions.apiservice.imp.S4HDescriptionService","correlation_id":"489ad550-cb0f-445b-9e44-d51e4401e729","written_at":"2025-03-24T06:20:38.460Z","thread":"http-nio-8080-exec-1","type":"log"}
Please let me know if there are any additional changes required from my side.
My GitHub link is -
https://github.tools.sap/DigitalManufacturing/psp-core-ms
The link to the PR -
https://github.tools.sap/DigitalManufacturing/psp-core-ms/commit/bb61921fff3168bc29b6bf30e53f002bc76a4c35
Thanks,
Saurabh
Steps to Reproduce
Expected Behavior
Material description is fetched without issues.
Screenshots
No response
Used Versions
Java - 17 and
Maven version - 3.8.6
SAP Cloud SDK version:
com.sap.cloud.sdk.s4hana s4hana-all 4.32.0
<cds.services.version>3.2.0</cds.services.version>
<cloud.sdk.version>5.11.0</cloud.sdk.version>
Code Examples
// Your code here
Stack Trace
No response
Log File
Log file
...Affected Development Phase
Getting Started
Impact
No Impact
Timeline
No response
The text was updated successfully, but these errors were encountered: