Bug 42388 - Internal classcastexception when trying to create new SlideShow(pptFile);
Summary: Internal classcastexception when trying to create new SlideShow(pptFile);
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: All Windows XP
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-10 14:02 UTC by Max V
Modified: 2007-05-11 05:29 UTC (History)
0 users



Attachments
ppt 2003 file that crashes when creating a SlideShow from the loaded file (71.00 KB, application/octet-stream)
2007-05-10 14:03 UTC, Max V
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max V 2007-05-10 14:02:18 UTC
Exception in thread "main" java.lang.ClassCastException: 
org.apache.poi.hslf.record.Slide
	at 
org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.java:320)
	at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:121)
	at org.semanticdesktop.tmi.MultiSlide.dump(MultiSlide.java:40)
	at org.semanticdesktop.tmi.MultiSlide.main(MultiSlide.java:30)

I can deliver a one-slide file from ppt 2003 that crashes the lib.
Exact POI version is 3.0 alpha 3.
Comment 1 Max V 2007-05-10 14:03:35 UTC
Created attachment 20165 [details]
ppt 2003 file that crashes when creating a SlideShow from the loaded file
Comment 2 Nick Burch 2007-05-11 02:59:19 UTC
Try with 3.0 RC4 (http://people.apache.org/~nick/POI-3.0-RC4/). I think it
should be fixed in there.
Comment 3 Max V 2007-05-11 05:22:31 UTC
Yes, RC4 solves it!

Btw: consider hosting a proper maven2 snapshot repository, then it is more easy 
to update the dependency - I can help there
Comment 4 Nick Burch 2007-05-11 05:29:52 UTC
RC4 is just a release candidate, so it doesn't get pushed out to the normal
mirrors. 3.0 FINAL (when released) will be distributed to all the mirrors, and
will end up on ibiblio.