Subversion Repositories SmartDukaan

Rev

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

Rev 9203 Rev 9204
Line 534... Line 534...
534
			if(exit){
534
			if(exit){
535
				continue;
535
				continue;
536
			}
536
			}
537
			txn.setOrders(orderlist);
537
			txn.setOrders(orderlist);
538
			try {
538
			try {
539
				//transaction_client = new TransactionClient().getClient();
-
 
540
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
539
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
541
				logger.info("Transaction id is : " + transactionId);
540
				logger.info("Transaction id is : " + transactionId);
542
			} catch (TransactionServiceException e) {
541
			} catch (TransactionServiceException e) {
543
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
542
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
544
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
543
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
Line 568... Line 567...
568
				e.printStackTrace();
567
				e.printStackTrace();
569
				continue;
568
				continue;
570
			}
569
			}
571
			Transaction transaction = null;
570
			Transaction transaction = null;
572
			try {
571
			try {
-
 
572
				transaction_client = new TransactionClient().getClient();
573
				transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
573
				transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
574
			} catch (NumberFormatException e) {
574
			} catch (NumberFormatException e) {
575
				logger.error("Problem parsing transaction id " + transactionId +" ", e);
575
				logger.error("Problem parsing transaction id " + transactionId +" ", e);
576
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
576
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
577
				e.printStackTrace();
577
				e.printStackTrace();
Line 580... Line 580...
580
				logger.error("Problem getting transaction from service transaction id " + transactionId +" ",e);
580
				logger.error("Problem getting transaction from service transaction id " + transactionId +" ",e);
581
				sb.append(orderId+" "+subOrderId  + " Problem getting transaction id "+ transactionId +"\n");
581
				sb.append(orderId+" "+subOrderId  + " Problem getting transaction id "+ transactionId +"\n");
582
				e.printStackTrace();
582
				e.printStackTrace();
583
				continue;
583
				continue;
584
			} catch (TException e) {
584
			} catch (TException e) {
585
				logger.error("Problem with transaction service while getting transaction id " + transactionId + " " , e);
585
				logger.error("	 " + transactionId + " " , e);
586
				sb.append(orderId+" "+subOrderId + " Problem with transaction service while getting transaction id "+ transactionId +"\n");
586
				sb.append(orderId+" "+subOrderId + " Problem with transaction service while getting transaction id "+ transactionId +"\n");
587
				e.printStackTrace();
587
				e.printStackTrace();
588
				continue;
588
				continue;
589
			}
589
			}
590
			List<in.shop2020.model.v1.order.Order> flipkartorders = transaction.getOrders();
590
			List<in.shop2020.model.v1.order.Order> flipkartorders = transaction.getOrders();