We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

7.0.2 Regression - NPE when opening workbook

(Forum Search is offline. This may be a duplicate.)

new Workbook(String) is throwing an NPE when loading XLSX workbooks. Exception does not occur when using 7.0.1


  1. Use Aspose Cells for Java 7.0.1, JDK 1.6
  2. Create new workbook
  • MacOS 10.6
  • Microsoft Excel 2008 (v12.3.1)
  • Create new Workbook object
    • Object created as expected
  • Replace Aspose Cells jars with 7.0.2, JDK 1.6 distribution
    • NPE (not expected)

    Stack Trace

    	at com.aspose.cells.kp.a(Unknown Source)
    	at com.aspose.cells.kw.e(Unknown Source)
    	at com.aspose.cells.kw.a(Unknown Source)
    	at com.aspose.cells.kv.a(Unknown Source)
    	at com.aspose.cells.Workbook.a(Unknown Source)
    	at com.aspose.cells.Workbook.a(Unknown Source)
    	at com.aspose.cells.Workbook.(Unknown Source)


    File file = new File("/tmp/Workbook.xlsx");
    Workbook workbook = new Workbook(file.getAbsolutePath());


    I am unable to reproduce this exception using the latest version:
    Aspose.Cells for Java v7.0.2

    Please make sure, you are using 7.0.2 jars, because I think, some jars have been changed. Please discard everything of previous version, and use all the new jars found from the link given by me above.

    Below are the names of all the jars.

    1. aspose-cells-7.0.2.jar
    2. bcprov-jdk16-146.jar
    3. dom4j-1.6.1.jar
    4. stax2-api-3.0.2.jar
    5. woodstox-core-asl-4.1.1.jar


    Sorry for the false report.