on 06-07-2019 1:29 PM
Hi Team,
We are unable get response from HCPMS. We are getting error like "Caused by: java.net.SocketTimeoutException: timeout". This issue will happen rare case. We increased Timeout (ms) : 240000 ms in HCPMS. But SAP side entity created.Please help to us.
find below code snippet:
provider.createEntityAsync(entity,success,failure);
Find below full error message in Debug mode: com.sap.cloud.mobile.odata.http.HttpException: https://xxxxxxxxxx.hana.ondemand.com; Caused by: com.sap.cloud.mobile.odata.core.RuntimeIOException; Caused by: java.net.SocketTimeoutException: timeout; Caused by: java.net.SocketException: socket is closed
Regards
Ramakrishna. Amathi
Hi Team,
Any idea about SocketTimeoutException?. Please help us.
Regards
Michele De Crescenzo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'd need to get logs from a variety of sources. Keep in mind the cause of the timeout could be happening almost anywhere - in the backend, in a firewall, in a load balancer, on the client… What you'll want is logs from as many of those places as you can, and hopefully that will lead you to the root cause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Team,
Any idea about SocketTimeoutException. Please help to us.
Regards
Ramakrishna.Amathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Team,
Please update.
Regards
Ramakrishna.Amathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nick,
I am using Online provider.
Please find below steps:
1) Open Online store. Find below code snippet.
String serviceUrl = configurationData.getServiceUrl();
providerUploadOnline = new OnlineODataProvider("ESPMContainer", serviceUrl + Config.getDestinationUpload());
providerUploadOnline.getNetworkOptions().setHttpHandler(new OKHttpHandler(ClientProvider.get()));
providerUploadOnline.getServiceOptions().setCheckVersion(false);
providerUploadOnline.getServiceOptions().setRequiresType(true);
providerUploadOnline.getServiceOptions().setCacheMetadata(false);
uploadContainerOnline = new OfflineUploadContainer(providerUploadOnline);
2) Make entity using set properties
3) Create entity asynchronous. Find below code snippet.
uploadContainerOnline.createEntityAsync(entity,success,failure);
Regards
Ramakrishna. Amathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.