You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Eitan Gur <eg...@axismobile.com> on 2006/12/19 13:46:46 UTC

CorruptPowerPointFileException

Hi
 
I get the following exception, trying to instantiate a SlideShow with a specific PPT file, I get: 
 
org.apache.poi.hslf.exceptions.CorruptPowerPointFileException: The PowerPoint file had a broken first SlideListWithTexts. This should only contain either MainMasters, or Slides, but it contained a mix of both (1 slides and 1 masters)
        at org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.java:352)
        at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:121)
 
(I couldn't send the file as the mailer-daemon doesn't allow me).
When I roll-back to the version I had previously (also attaced) - there's no problem.
 
Any idea why?
 
10x
 
 
====================================
Eitan Gur
R&D
AxisMobile Ltd. 
Consumer Mobile Email   
Tel: Int +972-3-768 5538
Mobile: Int +972-54-3105142
Fax: Int +972-3-768 5556  
gur@axismobile.com <ma...@axismobile.com>     
====================================
 

Re: CorruptPowerPointFileException

Posted by Nick Burch <ni...@torchbox.com>.
On Tue, 19 Dec 2006, Eitan Gur wrote:
> I get the following exception, trying to instantiate a SlideShow with a
> specific PPT file, I get:
>
> org.apache.poi.hslf.exceptions.CorruptPowerPointFileException: The PowerPoint file had a broken first SlideListWithTexts. This should only contain either MainMasters, or Slides, but it contained a mix of both (1 slides and 1 masters)

Various things would've been broken before, you just might not have
discovered them!

We now detect a situation we don't properly handle, and give an error. We
didn't think that files like this should've been valid, so we felt safe to
throw the exception. However, it's now looking like they might be valid
files, but with crazy contents...

As Yegor asked, could you let us know how the file was created? We need to
know how they're coming about, before we think about trying to support
them

Cheers
Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Re: CorruptPowerPointFileException

Posted by Yegor Kozlov <ye...@dinom.ru>.
Hi

We are investigating this problem.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=41176
You can attach the file to this bug.

Do you know what software was used to produce this file? PowerPoint or
OpenOffice or whatever else? Anything special about this file?

Yegor

EG> Hi
 
EG> I get the following exception, trying to instantiate a SlideShow with a specific PPT file, I get: 
 
EG> org.apache.poi.hslf.exceptions.CorruptPowerPointFileException: The PowerPoint file had a broken first SlideListWithTexts. This should only contain either MainMasters, or Slides, but it contained
EG> a mix of both (1 slides and 1 masters)
EG>         at org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.java:352)
EG>         at org.apache.poi.hslf.usermodel.SlideShow.<init>(SlideShow.java:121)
 
EG> (I couldn't send the file as the mailer-daemon doesn't allow me).
EG> When I roll-back to the version I had previously (also attaced) - there's no problem.
 
EG> Any idea why?
 
EG> 10x
 
 
EG> ====================================
EG> Eitan Gur
EG> R&D
EG> AxisMobile Ltd. 
EG> Consumer Mobile Email   
EG> Tel: Int +972-3-768 5538
EG> Mobile: Int +972-54-3105142
EG> Fax: Int +972-3-768 5556  
EG> gur@axismobile.com <ma...@axismobile.com>     
EG> ====================================


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/