Replies: 2 comments 5 replies
-
jxls-2.4.7 to 2.14 is a big jump. I have no idea what change it is. I guess your data objects won't be called. Please debug the JEXL (expression evaluation) code. |
Beta Was this translation helpful? Give feedback.
-
Hello @SoltauFintel thanks for your reply! Regarding versions Anyhow... I enabled the logging for org.apache.commons.jexl3 and this is reported in the log the MatInfo class looks like this
I made the class properties public, the getters are public and were generated with "standard" naming. I also have moved all classes for the JXLS report into the same package. But that had no effect so far. Regards |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm using the JXLS library to generate some specific Excel based reports within the PTC PDMLink 12.x environment.
After a minor patch/update of the PDMLink application server, the report generation fails with this error:
Caused by: java.lang.NoSuchMethodError: 'org.apache.poi.ss.usermodel.CellType org.apache.poi.ss.usermodel.Cell.getCellTypeEnum()'
at org.jxls.transform.poi.PoiCellData.readCellContents(PoiCellData.java:88)
at org.jxls.transform.poi.PoiCellData.readCell(PoiCellData.java:54)
In the production environment are these jxls jars deployed within the active classpath:
commons-jexl-2.1.1.jar
jxls-2.4.7.jar
jxls-jexcel-1.0.7.jar
jxls-poi-1.0.16.jar
jxls-reader-2.0.5.jar
My XLSX template looks like this:
My conclusion was that PTC has updated with the patch the org.apache.poi.* packages and as a result I have to update the JXLS jars too.
(Apache POI before update: v4.1.2 / after update: v5.2.1)
In my DEV/test environment I've updated the JXLS jars to
jxls-2.14.0.jar
jxls-poi-2.14.0.jar
jxls-reader-2.1.0.jar
But now I get empty cells as a result
JXLS seems to recognize the data an generates rows accordingly, but all cells are empty?!
the very unspectacular code looks like this
File tmplFile = new File(params.get("template"));
File outFile = new File(params.get("output"));
Any idea what I'm doing wrong?
Is my jx:each command incorrect?
thanks in advance!
Best regards!
Beta Was this translation helpful? Give feedback.
All reactions