Free Support Forum - aspose.com

NoClassDefFoundError on file open

Hi,

I get the following exception when trying to open a xlsx file. The file contains a pivot chart.

Could you please help?

Regards,

Sheeba

Extracting C:\TestData\Excel\pivotchart10\table_pivotchart.xlsx
Exception in thread "main" java.lang.NoClassDefFoundError: com/ctc/wstx/stax/WstxInputFactory
at com.aspose.cells.d.a.a.f.a(Unknown Source)
at com.aspose.cells.d.a.a.f.a(Unknown Source)
at com.aspose.cells.d.a.a.f.(Unknown Source)
at com.aspose.cells.d.a.a.f.(Unknown Source)
at com.aspose.cells.bk.a(Unknown Source)
at com.aspose.cells.eJ.f(Unknown Source)
at com.aspose.cells.eJ.e(Unknown Source)
at com.aspose.cells.eJ.a(Unknown Source)
at com.aspose.cells.bk.k(Unknown Source)
at com.aspose.cells.bk.a(Unknown Source)
at com.aspose.cells.ii.a(Unknown Source)
at com.aspose.cells.ii.a(Unknown Source)
at com.aspose.cells.iG.a(Unknown Source)
at com.aspose.cells.iG.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at office2csv.spreadsheet.XlsxTablesConverter.convertToCsv(XlsxTablesConverter.java:86)
at office2csv.Office2csv.processFile(Office2csv.java:158)
at office2csv.Office2csv.convertFiles(Office2csv.java:422)
at office2csv.Office2csv.main(Office2csv.java:294)
Caused by: java.lang.ClassNotFoundException: com.ctc.wstx.stax.WstxInputFactory

Hi,

Please test your issue with the latest version: Aspose.Cells for Java v7.0.1

If the problem persists, then please provide us your source table_pivotchart.xlsx file and the sample code here.

Hi,

Please make sure that you have put all required libraries into your classpath. From the exception stack trace, it seems at least “woodstox-core-asl-4.0.8.jar” is absent from the classpath.

Hi Shakeel,

It worked. Thank you very much.


Regards,
Sheeba