Subversion Repositories SmartDukaan

Rev

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

Rev 9195 Rev 9196
Line 533... Line 533...
533
			if(exit){
533
			if(exit){
534
				continue;
534
				continue;
535
			}
535
			}
536
			txn.setOrders(orderlist);
536
			txn.setOrders(orderlist);
537
			try {
537
			try {
-
 
538
				transaction_client = new TransactionClient().getClient();
538
				transactionId =  String.valueOf(new TransactionClient().getClient().createTransaction(txn));
539
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
539
				logger.info("Transaction id is : " + transactionId);
540
				logger.info("Transaction id is : " + transactionId);
540
			} catch (TransactionServiceException e) {
541
			} catch (TransactionServiceException e) {
541
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
542
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
542
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
543
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
543
				continue;
544
				continue;
Line 566... Line 567...
566
				e.printStackTrace();
567
				e.printStackTrace();
567
				continue;
568
				continue;
568
			}
569
			}
569
			Transaction transaction = null;
570
			Transaction transaction = null;
570
			try {
571
			try {
571
				transaction = new TransactionClient().getClient().getTransaction(Long.parseLong(transactionId));
572
				transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
572
			} catch (NumberFormatException e) {
573
			} catch (NumberFormatException e) {
573
				logger.error("Problem parsing transaction id " + transactionId +" ", e);
574
				logger.error("Problem parsing transaction id " + transactionId +" ", e);
574
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
575
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
575
				e.printStackTrace();
576
				e.printStackTrace();
576
				continue;
577
				continue;