| Line 68... |
Line 68... |
| 68 |
|
68 |
|
| 69 |
private static Logger logger = LoggerFactory.getLogger(FetchNewFlipkartOrdersNew .class);
|
69 |
private static Logger logger = LoggerFactory.getLogger(FetchNewFlipkartOrdersNew .class);
|
| 70 |
private static long paymentId;
|
70 |
private static long paymentId;
|
| 71 |
public static void main(String[] args) throws CatalogServiceException, TException, IOException {
|
71 |
public static void main(String[] args) throws CatalogServiceException, TException, IOException {
|
| 72 |
|
72 |
|
| 73 |
File fileToCreate = new File("/tmp/NewOrders.txt");
|
73 |
File fileToCreate = new File("/home/manish/Desktop/NewOrders.txt");
|
| 74 |
try{
|
74 |
try{
|
| 75 |
BufferedReader rd = new BufferedReader(new FileReader(fileToCreate));
|
75 |
BufferedReader rd = new BufferedReader(new FileReader(fileToCreate));
|
| 76 |
String line;
|
76 |
String line;
|
| 77 |
|
77 |
|
| 78 |
Gson gson;
|
78 |
Gson gson;
|
| Line 381... |
Line 381... |
| 381 |
} catch (TException e) {
|
381 |
} catch (TException e) {
|
| 382 |
logger.error("Problem.. thrift exception with Transaction service " , e);
|
382 |
logger.error("Problem.. thrift exception with Transaction service " , e);
|
| 383 |
e.printStackTrace();
|
383 |
e.printStackTrace();
|
| 384 |
continue;
|
384 |
continue;
|
| 385 |
}
|
385 |
}
|
| 386 |
//flipkartItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
|
386 |
flipkartItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
|
| 387 |
flipkartItem = new CatalogClient().getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
|
387 |
//flipkartItem = new CatalogClient().getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
|
| 388 |
sku = flipkartItem.getItem_id();
|
388 |
sku = flipkartItem.getItem_id();
|
| 389 |
if(sku==0){
|
389 |
if(sku==0){
|
| 390 |
System.out.println("SKU Mapping doesnt exists " + skuAtFlipkart);
|
390 |
System.out.println("SKU Mapping doesnt exists " + skuAtFlipkart);
|
| 391 |
sb.append(orderId + " "+ subOrderId + " SKU Mapping doesnt exist" + " " +skuAtFlipkart+ "\n");
|
391 |
sb.append(orderId + " "+ subOrderId + " SKU Mapping doesnt exist" + " " +skuAtFlipkart+ "\n");
|
| 392 |
continue;
|
392 |
continue;
|