Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
ID B C D
classic 111 222 333
c_empty 111 333
<A id="classic">
<b>111</b>
<c>222</c>
<d>333</d>
</A>
<A id="c_empty">
<b>111</b>
<d>333</d>
</A>
The schema of the xlsx has the 'nullable' check, but i get a "IllegalStateException: Bad cell type" when it tries to convert the empty cell into 'string/numeric/...'
Démarrage du jobOP_SK a 11:03 24/12/2009.
connecting to socket on port 4178
connected
log4j:WARN No appenders could be found for logger (org.openxml4j.opc).
log4j:WARN Please initialize the log4j system properly.
Exception in component tFileInputExcel_3
java.lang.IllegalStateException: Bad cell type (3)
at org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator.evaluate(XSSFFormulaEvaluator.java:102)
at sk.op_sk_0_1.OP_SK.tFileInputExcel_3Process(OP_SK.java:3147)
at sk.op_sk_0_1.OP_SK.runJobInTOS(OP_SK.java:5926)
at sk.op_sk_0_1.OP_SK.main(OP_SK.java:5822)
disconnected
Job OP_SK terminé à 11:03 24/12/2009.
for (int i = 0; i < 70; i++) {
if (i + start_column_tFileInputExcel_3 < actual_end_column_tFileInputExcel_3) {
org.apache.poi.ss.usermodel.Cell cell_tFileInputExcel_3 = row_tFileInputExcel_3
.getCell(i + start_column_tFileInputExcel_3);
if (cell_tFileInputExcel_3 != null) {
switch (evaluator_tFileInputExcel_3.evaluate(
cell_tFileInputExcel_3).getCellType()) {
case org.apache.poi.ss.usermodel.Cell.CELL_TYPE_STRING:
temp_row_tFileInputExcel_3 = cell_tFileInputExcel_3
.getRichStringCellValue()
.getString();
break;
case org.apache.poi.ss.usermodel.Cell.CELL_TYPE_NUMERIC:
if (org.apache.poi.ss.usermodel.DateUtil
.isCellDateFormatted(cell_tFileInputExcel_3)) {
temp_row_tFileInputExcel_3 = cell_tFileInputExcel_3
.getDateCellValue().toString();
} else {
...