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

Reproduction

  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

    java.lang.NullPointerException
    	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)

    Code

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

    Hi,

    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

    Confirmed.


    Sorry for the false report.