XSSFWorkbook wb = new XSSFWorkbook(data);
Sheet sheet = wb.getSheetAt(0);
if (sheet != null) {
while (true) {
ImportBean importBean = new ImportBean();
row = sheet.getRow(fieldsize);
//System.out.println(row.getPhysicalNumberOfCells());
try {
if (row.getCell(0).equals(null)) {
break;
}
importBean.setSubsystem(row.getCell(0).toString().trim());
importBean.setCategory(row.getCell(1).toString().trim());
importBean.setItem(row.getCell(2).toString().trim());
importBean.setFail_mode(row.getCell(3).toString().trim());
importBean.setFailure_distribution(row.getCell(4).toString().trim());
importBean.setFparam1(chkCellfloat(row.getCell(5)));
importBean.setFparam2(chkCellfloat(row.getCell(6)));
importBean.setFparam3(chkCellfloat(row.getCell(7)));
//importBean.setFparam3(row.getCell(7));
importBean.setRparam1(chkCellfloat(row.getCell(8)));
importBean.setRparam2(chkCellfloat(row.getCell(9)));
importBean.setRparam3(chkCellfloat(row.getCell(10)));
importBean.setFailure(chkCellfloat(row.getCell(11)));
importBean.setRepair(chkCellfloat(row.getCell(12)));
importBean.setConnection((int)row.getCell(13).getNumericCellValue());
importBean.setUserID(pro_id);
resultdata.add(rowSize, importBean);
fieldsize++;
rowSize++;
System.out.println(resultdata.size());
} catch(NullPointerException e) {