CorruptPowerPointFileException

2006-12-19 Thread Eitan Gur
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.(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  
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

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

RE: CorruptPowerPointFileException

2006-12-24 Thread Eitan Gur
Added the file to the bug

-Original Message-
From: Yegor Kozlov [mailto:[EMAIL PROTECTED] 
Sent: ג 19 דצמבר 2006 15:09
To: POI Users List
Subject: Re: CorruptPowerPointFileException

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.(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> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
EG> 


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


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



RE: CorruptPowerPointFileException

2006-12-24 Thread Eitan Gur
I believe MS powerpoint, but I'm not sure which version or year (I think it was 
created in 2002).

-Original Message-
From: David Fisher [mailto:[EMAIL PROTECTED] 
Sent: א 24 דצמבר 2006 17:16
To: POI Users List
Subject: Re: CorruptPowerPointFileException

Eitan,

Yegor also asked what software was used to produce this file. It  
would really help to know this information, if nothing else it would  
help prioritize its investigation.

Shalom,
Dave Fisher

On Dec 24, 2006, at 8:30 AM, Eitan Gur wrote:

> Added the file to the bug
>
> -Original Message-
> From: Yegor Kozlov [mailto:[EMAIL PROTECTED]
> Sent: ג 19 דצמבר 2006 15:09
> To: POI Users List
> Subject: Re: CorruptPowerPointFileException
>
> 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. 
> (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> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> EG> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> Mailing List: http://jakarta.apache.org/site/mail2.html#poi
> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
>
>


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


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



Master sheet handling

2006-12-25 Thread Eitan Gur
Hi

 

Is it a known problem that master sheets are not parsed well? I see for
example that bullets from master sheets are not identified, whereas
bullets specifically requested from the user do.

Am I correct? If so - is this issue going to be solved soon?

 

10x

Eitan



ArrayIndexOutOfBoundsException in TextRun

2006-12-26 Thread Eitan Gur
Hi

 

I have several PPT presentations that cause an
ArrayIndexOutOfBoundsException to be thrown.

Before I open a bug in bugzilla, I wanted to know whether this is
already a known issue, and whether there's an easy workaround.

 

Here's a stacktrac:

 

java.lang.ArrayIndexOutOfBoundsException - 39

  at org.apache.poi.util.LittleEndian.getInt(LittleEndian.java:140)

  at
org.apache.poi.hslf.record.StyleTextPropAtom.setParentTextSize(StyleText
PropAtom.java:259)

  at org.apache.poi.hslf.model.TextRun.(TextRun.java:95)

  at org.apache.poi.hslf.model.TextRun.(TextRun.java:72)

  at org.apache.poi.hslf.model.Sheet.findTextRuns(Sheet.java:136)

  at org.apache.poi.hslf.model.Slide.(Slide.java:82)

  at
org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.ja
va:444)

  at
org.apache.poi.hslf.usermodel.SlideShow.(SlideShow.java:122)

 

10x,

Eitan



RE: Master sheet handling

2006-12-26 Thread Eitan Gur
Hi

A further explanation:
I'm working with POI HSLF to read MS-PowerPoint presentations to JAVA objects 
supplied with POI.

I have a code that traverses the 
RichTextRun._getRawParagraphStyle().getTextPropList() list, finding any 
property with key containing "bullet.". This is the way I identify bullets.

The problem I encounter is that master sheets' bullets are not recognized by 
HSLF.

Hope I made myself clearer.

-Original Message-
From: Yegor Kozlov [mailto:[EMAIL PROTECTED] 
Sent: ב 25 דצמבר 2006 14:20
To: POI Users List
Subject: Re: Master sheet handling

Hi

Could you describe the problem in details?

We don't yet support bullets and numbered lists. How did you access
the bullets info?

It would be good if you attach the problem to bugzilla. I will take a
look at it.

Regards, Yegor

EG> Hi

 

EG> Is it a known problem that master sheets are not parsed well? I see for
EG> example that bullets from master sheets are not identified, whereas
EG> bullets specifically requested from the user do.

EG> Am I correct? If so - is this issue going to be solved soon?

 

EG> 10x

EG> Eitan


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


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



RE: ArrayIndexOutOfBoundsException in TextRun

2006-12-27 Thread Eitan Gur
Bug #41246 was opened on this.

-Original Message-
From: Yegor Kozlov [mailto:[EMAIL PROTECTED] 
Sent: ג 26 דצמבר 2006 11:40
To: POI Users List
Subject: Re: ArrayIndexOutOfBoundsException in TextRun

Hi

Exceptions are not supposed to be thrown. Please post the bug.
If possible, attach the ppt file.

Regards,
Yegor

EG> Hi

 

EG> I have several PPT presentations that cause an
EG> ArrayIndexOutOfBoundsException to be thrown.

EG> Before I open a bug in bugzilla, I wanted to know whether this is
EG> already a known issue, and whether there's an easy workaround.

 

EG> Here's a stacktrac:

 

EG> java.lang.ArrayIndexOutOfBoundsException - 39

EG>   at org.apache.poi.util.LittleEndian.getInt(LittleEndian.java:140)

EG>   at
EG> org.apache.poi.hslf.record.StyleTextPropAtom.setParentTextSize(StyleText
EG> PropAtom.java:259)

EG>   at org.apache.poi.hslf.model.TextRun.(TextRun.java:95)

EG>   at org.apache.poi.hslf.model.TextRun.(TextRun.java:72)

EG>   at org.apache.poi.hslf.model.Sheet.findTextRuns(Sheet.java:136)

EG>   at org.apache.poi.hslf.model.Slide.(Slide.java:82)

EG>   at
EG> org.apache.poi.hslf.usermodel.SlideShow.buildSlidesAndNotes(SlideShow.ja
EG> va:444)

EG>   at
EG> org.apache.poi.hslf.usermodel.SlideShow.(SlideShow.java:122)

 

EG> 10x,

EG> Eitan


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


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