Commit 38dc989d authored by Alina Habibulina's avatar Alina Habibulina

[FIX] fix

parent de09d0cf
......@@ -38,6 +38,8 @@ public class State {
if(errors.size() > 0) {
json = json.substring(0, json.length() - 1) + "]";
} else {
json += "]";
}
json += "}";
......
......@@ -43,6 +43,10 @@ public class UnsecuredProxyService {
return "{\"status\":\"working\"}";
}
/**
* API для получения информации о процессе импорта
* @return
*/
@GET
@Path("/info")
@Produces(MediaType.APPLICATION_JSON + "; charset=utf-8")
......
package kz.arta.ext.sap.util;
import com.google.gson.*;
import jdk.nashorn.internal.parser.JSONParser;
import kz.arta.ext.sap.State;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
......@@ -349,8 +348,7 @@ public class ImportBean {
rowFF.add(valueFF);
} catch (Exception e){
importState.errors.add("Ошибка в строке :" + (row.getRowNum() + 1) + ". в ячейке: " + cellValue.getCellType() +
", со значением: " + cellValue.formatAsString() + ". Заголовок: " + header + ". \\n");
importState.errors.add("Ошибка в строке :" + (row.getRowNum() + 1) + ", со значением: " + cellValue.getStringValue() + ". Заголовок: " + header + ". \\n");
LOGGER.error("Error in line :" + (row.getRowNum() + 1) + ". Something wrong with cell of type: " + cellValue.getCellType() +
", and value: " + cellValue.formatAsString() + ". The header is: " + header + ".");
LOGGER.error(e.getMessage());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment