Subversion Repositories SmartDukaan

Rev

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

Rev 9084 Rev 9087
Line 480... Line 480...
480
			if(exit){
480
			if(exit){
481
				continue;
481
				continue;
482
			}
482
			}
483
			txn.setOrders(orderlist);
483
			txn.setOrders(orderlist);
484
			try {
484
			try {
485
				transactionId =  String.valueOf(transaction_client.createTransaction(txn));
485
				transactionId =  String.valueOf(new TransactionClient().getClient().createTransaction(txn));
486
				logger.info("Transaction id is : " + transactionId);
486
				logger.info("Transaction id is : " + transactionId);
487
			} catch (TransactionServiceException e) {
487
			} catch (TransactionServiceException e) {
488
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
488
				logger.error(orderId+" "+subOrderId + " Could not create transaction " , e);
489
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
489
				sb.append(orderId+" "+subOrderId + " Could not create transaction" +"\n");
490
				continue;
490
				continue;
Line 513... Line 513...
513
				e.printStackTrace();
513
				e.printStackTrace();
514
				continue;
514
				continue;
515
			}
515
			}
516
			Transaction transaction = null;
516
			Transaction transaction = null;
517
			try {
517
			try {
518
				transaction = transaction_client.getTransaction(Long.parseLong(transactionId));
518
				transaction = new TransactionClient().getClient().getTransaction(Long.parseLong(transactionId));
519
			} catch (NumberFormatException e) {
519
			} catch (NumberFormatException e) {
520
				logger.error("Problem parsing transaction id " + transactionId);
520
				logger.error("Problem parsing transaction id " + transactionId);
521
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
521
				sb.append(orderId+" "+subOrderId  + " Problem parsing transaction id "+ transactionId +"\n");
522
				e.printStackTrace();
522
				e.printStackTrace();
523
				continue;
523
				continue;