Subversion Repositories SmartDukaan

Rev

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

Rev 10869 Rev 10893
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
 
138
				logger.error("Problem with Transaction service " , e1);
153
				logger.error("Problem with Transaction service " , e1);
139
				e1.printStackTrace();
154
				e1.printStackTrace();
140
			} catch (TException e) {
155
			} catch (TException e) {
141
				logger.error("Problem.. thrift exception with Transaction service " , e);
156
				logger.error("Problem.. thrift exception with Transaction service " , e);
142
				e.printStackTrace();
157
				e.printStackTrace();
Line 405... Line 420...
405
			} catch (TransactionServiceException e) {
420
			} catch (TransactionServiceException e) {
406
				logger.error(order.getSuborderId() + " Could not create transaction " , e);
421
				logger.error(order.getSuborderId() + " Could not create transaction " , e);
407
				sb.append(order.getSuborderId() + " Could not create transaction" +"\n");
422
				sb.append(order.getSuborderId() + " Could not create transaction" +"\n");
408
				continue;
423
				continue;
409
			} catch (TException e) {
424
			} 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
				}
410
				logger.error("Problem with transaction service while creating transaction", e);
432
				logger.error("Problem with transaction service while creating transaction", e);
411
				sb.append(order.getSuborderId() + " Transaction Service Exception could not create transaction" +"\n");
433
				sb.append(order.getSuborderId() + " Transaction Service Exception could not create transaction" +"\n");
412
				continue;
434
				continue;
413
			}
435
			}
414
			try{
436
			try{