Bug 42388

Summary: Internal classcastexception when trying to create new SlideShow(pptFile);
Product: POI Reporter: Max V <dev>
Component: HSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P2    
Version: 3.0-dev   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Attachments: ppt 2003 file that crashes when creating a SlideShow from the loaded file

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.