| Line 301... |
Line 301... |
| 301 |
logger.error("Unable to read Http Response for snapdeal oneship delivered orders", e);
|
301 |
logger.error("Unable to read Http Response for snapdeal oneship delivered orders", e);
|
| 302 |
throw new Exception("Unable to read Http Response for snapdeal oneship delivered orders");
|
302 |
throw new Exception("Unable to read Http Response for snapdeal oneship delivered orders");
|
| 303 |
}
|
303 |
}
|
| 304 |
|
304 |
|
| 305 |
try {
|
305 |
try {
|
| - |
|
306 |
String resP;
|
| 306 |
String resP = rd.readLine();
|
307 |
while((resP=rd.readLine())!=null){
|
| 307 |
if(resP!=null && !resP.isEmpty()){
|
308 |
if(resP!=null && !resP.isEmpty()){
|
| 308 |
jsonDataObj = new JSONArray("["+resP+"]");
|
309 |
jsonDataObj = new JSONArray("["+resP+"]");
|
| 309 |
JSONObject j1 = (JSONObject)jsonDataObj.get(0);
|
310 |
JSONObject j1 = (JSONObject)jsonDataObj.get(0);
|
| 310 |
jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
|
311 |
jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
|
| - |
|
312 |
}
|
| 311 |
}
|
313 |
}
|
| 312 |
} catch (Exception e) {
|
314 |
} catch (Exception e) {
|
| 313 |
logger.error("Unable to extract Http Response for snapdeal oneship delivered orders", e);
|
315 |
logger.error("Unable to extract Http Response for snapdeal oneship delivered orders", e);
|
| 314 |
throw new Exception("Unable to extract Http Response for snapdeal oneship delivered orders");
|
316 |
throw new Exception("Unable to extract Http Response for snapdeal oneship delivered orders");
|
| 315 |
}
|
317 |
}
|
| Line 414... |
Line 416... |
| 414 |
logger.error("Unable to read Http Response for snapdeal oneship cancelled orders", e);
|
416 |
logger.error("Unable to read Http Response for snapdeal oneship cancelled orders", e);
|
| 415 |
throw new Exception("Unable to read Http Response for snapdeal oneship cancelled orders");
|
417 |
throw new Exception("Unable to read Http Response for snapdeal oneship cancelled orders");
|
| 416 |
}
|
418 |
}
|
| 417 |
|
419 |
|
| 418 |
try {
|
420 |
try {
|
| - |
|
421 |
String resP;
|
| 419 |
String resP = rd.readLine();
|
422 |
while((resP=rd.readLine())!=null){
|
| 420 |
if(resP!=null && !resP.isEmpty()){
|
423 |
if(resP!=null && !resP.isEmpty()){
|
| 421 |
jsonDataObj = new JSONArray("["+resP+"]");
|
424 |
jsonDataObj = new JSONArray("["+resP+"]");
|
| 422 |
JSONObject j1 = (JSONObject)jsonDataObj.get(0);
|
425 |
JSONObject j1 = (JSONObject)jsonDataObj.get(0);
|
| 423 |
jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
|
426 |
jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
|
| - |
|
427 |
}
|
| 424 |
}
|
428 |
}
|
| 425 |
} catch (Exception e) {
|
429 |
} catch (Exception e) {
|
| 426 |
logger.error("Unable to extract Http Response for snapdeal oneship cancelled orders", e);
|
430 |
logger.error("Unable to extract Http Response for snapdeal oneship cancelled orders", e);
|
| 427 |
throw new Exception("Unable to extract Http Response for snapdeal oneship cancelled orders");
|
431 |
throw new Exception("Unable to extract Http Response for snapdeal oneship cancelled orders");
|
| 428 |
}
|
432 |
}
|