Subversion Repositories SmartDukaan

Rev

Rev 10893 | Rev 10895 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10893 Rev 10894
Line 133... Line 133...
133
					duplicate_orders++;
133
					duplicate_orders++;
134
					continue;
134
					continue;
135
				}
135
				}
136
 
136
 
137
			} catch (TTransportException e1) {
137
			} catch (TTransportException e1) {
138
				try {
-
 
139
					transaction_client = new TransactionClient().getClient();
-
 
140
				} catch (TTransportException e2) {
-
 
141
					e2.printStackTrace();
-
 
142
				}
-
 
143
				try {
-
 
144
					if(transaction_client.snapdealOrderExists(subOrderId, order.getReferenceCode())) {
-
 
145
						logger.error("Snapdeal suborder id exists " + subOrderId);
-
 
146
						duplicate_orders++;
-
 
147
						continue;
-
 
148
					}
-
 
149
				} catch (TException e) {
-
 
150
					e.printStackTrace();
-
 
151
				}
-
 
152
 
-
 
153
				logger.error("Problem with Transaction service " , e1);
138
				logger.error("Problem with Transaction service " , e1);
154
				e1.printStackTrace();
139
				e1.printStackTrace();
155
			} catch (TException e) {
140
			} catch (TException e) {
156
				logger.error("Problem.. thrift exception with Transaction service " , e);
141
				logger.error("Problem.. thrift exception with Transaction service " , e);
157
				e.printStackTrace();
142
				e.printStackTrace();
Line 420... Line 405...
420
			} catch (TransactionServiceException e) {
405
			} catch (TransactionServiceException e) {
421
				logger.error(order.getSuborderId() + " Could not create transaction " , e);
406
				logger.error(order.getSuborderId() + " Could not create transaction " , e);
422
				sb.append(order.getSuborderId() + " Could not create transaction" +"\n");
407
				sb.append(order.getSuborderId() + " Could not create transaction" +"\n");
423
				continue;
408
				continue;
424
			} catch (TException e) {
409
			} catch (TException e) {
425
				try {
-
 
426
					transactionId =  String.valueOf(transaction_client.createTransaction(txn));
-
 
427
				} catch (TransactionServiceException e1) {
-
 
428
					e1.printStackTrace();
-
 
429
				} catch (TException e1) {
-
 
430
					e1.printStackTrace();
-
 
431
				}
-
 
432
				logger.error("Problem with transaction service while creating transaction", e);
410
				logger.error("Problem with transaction service while creating transaction", e);
433
				sb.append(order.getSuborderId() + " Transaction Service Exception could not create transaction" +"\n");
411
				sb.append(order.getSuborderId() + " Transaction Service Exception could not create transaction" +"\n");
434
				continue;
412
				continue;
435
			}
413
			}
436
			try{
414
			try{