Subversion Repositories SmartDukaan

Rev

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

Rev 8969 Rev 8970
Line 150... Line 150...
150
				logger.info("User is " + user.getEmail());
150
				logger.info("User is " + user.getEmail());
151
			} catch (Exception e) {
151
			} catch (Exception e) {
152
				logger.error("Unable to establish connection to the User service ", e);
152
				logger.error("Unable to establish connection to the User service ", e);
153
			}
153
			}
154
			logger.info("Before iterating orders in file");
154
			logger.info("Before iterating orders in file");
155
			while ((nextLine = orderfilereader.readNext()) != null && nextLine.length !=0 ) {
155
			while ((nextLine = orderfilereader.readNext()) != null && nextLine.length!=0) {
156
				logger.info("Order file entry  " + nextLine);
156
				logger.info("Order file entry  " + nextLine);
157
				String orderId,subOrderId,create_date;
157
				String orderId,subOrderId,create_date;
158
				long sku;
158
				long sku;
159
				logger.info("Processing order " + nextLine[3]+ " " + nextLine[4]);
159
				logger.info("Processing order " + nextLine[3]+ " " + nextLine[4]);
160
				if(nextLine[3].length()==0 || nextLine[4].length()==0 ){
160
				if(nextLine[3].length()==0 || nextLine[4].length()==0 ){
Line 172... Line 172...
172
				}
172
				}
173
				else{
173
				else{
174
					sb.append(orderId+" "+subOrderId + " Could not parse order date" +"\n");
174
					sb.append(orderId+" "+subOrderId + " Could not parse order date" +"\n");
175
					logger.info(orderId+" "+subOrderId + " Could not parse order date");
175
					logger.info(orderId+" "+subOrderId + " Could not parse order date");
176
					continue;
176
					continue;
177
				!
177
				}
178
				if(nextLine[5].length()==0){
178
				if(nextLine[5].length()==0){
179
					sb.append(orderId+" "+subOrderId + " Could not parse sku" +"\n");
179
					sb.append(orderId+" "+subOrderId + " Could not parse sku" +"\n");
180
					logger.info(orderId+" "+subOrderId + " Could not parse sku");
180
					logger.info(orderId+" "+subOrderId + " Could not parse sku");
181
					continue;
181
					continue;
182
				}
182
				}