Florindo
06/06/2024, 4:39 PMBad type on operand stack Exception Details: Location: org/apache/poi/hssf/model/InternalWorkbook.getCustomPalette()Lorg/apache/poi/hssf/record/PaletteRecord; @84: invokevirtual Reason: Type 'org/apache/poi/hssf/record/PaletteRecord' (current frame, stack[2]) is not assignable to 'org/apache/poi/hssf/record/Record' Current Frame: bci: @84 flags: { } locals: { 'org/apache/poi/hssf/model/InternalWorkbook', 'org/apache/poi/hssf/record/PaletteRecord', integer } stack: { 'org/apache/poi/hssf/model/WorkbookRecordList', integer, 'org/apache/poi/hssf/record/PaletteRecord' } Bytecode: 0000000: 2ab4 0004 b601 663d 1c02 9f00 402a b400 0000010: 041c b600 854e 2dc1 0124 9900 0b2d c001 0000020: 244c a700 25bb 0037 59bb 0020 59b7 0021 0000030: 1301 67b6 0023 2db6 0168 1301 69b6 0023 0000040: b600 25b7 0039 bfa7 0018 b801 6a4c 2ab4 0000050: 0004 042b b600 8a2a b400 0404 b600 462b 0000060: b0 Stackmap Table: append_frame(@37,Top,Integer,Object[#543]) full_frame(@71,{Object[#541],Object[#835],Integer},{}) full_frame(@74,{Object[#541],Top,Integer},{}) full_frame(@95,{Object[#541],Object[#835],Integer},{})
The snippet of code which cause this is the next
poiJarPaths = [
expandPath( "../com/api/poiutility/poi-3.12-20150511.jar" ),
expandPath( "../com/api/poiutility/poi-export-utility.jar" ),
expandPath( "../com/api/poiutility/poi-ooxml-3.12-20150511.jar" ),
expandPath( "../com/api/poiutility/poi-ooxml-schemas-3.12-20150511.jar" )
];
local.WorkBook = CreateObject(
"java",
"org.apache.poi.hssf.usermodel.HSSFWorkbook",
poiJarPaths
).Init();
Anyone have an idea about what could happen. We are using lucee@5.4.4+38
Thanks in advance