https://bz.apache.org/bugzilla/show_bug.cgi?id=58616

            Bug ID: 58616
           Summary: Excel 2007 unable to read the Excel file content. But
                    the same file working fine after manual open and
                    re-save the excel file.
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: POIFS
          Assignee: dev@poi.apache.org
          Reporter: prakash.chakravar...@schawk.com

Created attachment 33278
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33278&action=edit
Attached the Standalone Java code to display the sheet name for the 2 different
template file names.

Team,

I'm trying to read the excel 2007 file (available in the attachment
B4Save.xlsx), but its giving the null pointer exception in the 
Decryptor.getDataStream . 

But the same file can open and resave(Not changing anything and save with the
same/ different filename AfterSave.xlsx) in the windows system was working file
in the attached java code.

To reproduce this issue swap the comments in the java code line 17 and 18 with
the file placed in the appropriate folders.

Used the latest stable jar file poi-bin-3.13-20150929.zip
http://mirrors.sonic.net/apache/poi/release/bin/poi-bin-3.13-20150929.zip

Please do the needful from your end and let me know if you requires any more
details related to this issue.

The issue was given below:
java.lang.NullPointerException
    at
org.apache.poi.poifs.crypt.CryptoFunctions.getCipher(CryptoFunctions.java:202)
    at
org.apache.poi.poifs.crypt.CryptoFunctions.getCipher(CryptoFunctions.java:182)
    at
org.apache.poi.poifs.crypt.standard.StandardDecryptor.getCipher(StandardDecryptor.java:122)
    at
org.apache.poi.poifs.crypt.standard.StandardDecryptor.getDataStream(StandardDecryptor.java:135)
    at org.apache.poi.poifs.crypt.Decryptor.getDataStream(Decryptor.java:92)
    at StandAloneExcel.main(StandAloneExcel.java:36)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to