https://issues.apache.org/bugzilla/show_bug.cgi?id=44732

           Summary: ClassCastException with new HSSFWorkbook(is)
           Product: POI
           Version: 3.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=21756)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21756)
Test program

The attached test program when run against the attached test file throws
ClassCastException.

Steps to reproduce:
- Run attached test program with attached test file

Actual result:
- Program crashes with the following stack trace:
Stack trace:
java -cp lib/poi-3.0.2-FINAL-20080204.jar:. MinimalTest
Exception in thread "main" java.lang.ClassCastException:
org.apache.poi.hpsf.PropertySet cannot be cast to
org.apache.poi.hpsf.DocumentSummaryInformation
        at org.apache.poi.POIDocument.readProperties(POIDocument.java:74)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:171)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:259)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:240)
        at MinimalTest.main(MinimalTest.java:7)

Expected result:
- The program should exit succesfully

Exact POI version:
poi-3.0.2-FINAL-20080204.jar


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to