You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by do...@gmx.de on 2005/08/29 10:17:38 UTC
hslf Exception
Hi,
i want to extract the contents from PowerPoint files.
I use the hslf classes!
But i get the Exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at org.apache.poi.util.HexDump.toHex(HexDump.java:406)
at org.apache.poi.util.HexDump.toHex(HexDump.java:397)
at
org.apache.poi.hpsf.UnsupportedVariantTypeException.<init>(UnsupportedVariantTypeException.java:49)
at
org.apache.poi.hpsf.ReadingNotSupportedException.<init>(ReadingNotSupportedException.java:45)
at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:267)
at org.apache.poi.hpsf.Property.<init>(Property.java:146)
at org.apache.poi.hpsf.Section.<init>(Section.java:281)
at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:452)
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:249)
at
org.apache.poi.hpsf.PropertySetFactory.create(PropertySetFactory.java:59)
at org.apache.poi.hslf.HSLFSlideShow.getPropertySet(HSLFSlideShow.java:214)
at org.apache.poi.hslf.HSLFSlideShow.readProperties(HSLFSlideShow.java:182)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:105)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:85)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:72)
at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:73)
at handlers.PPTHandler.getContents(PPTHandler.java:33)
at handlers.PPTHandler.main(PPTHandler.java:50)
when i initialise:
PowerPointExtractor extractor = new PowerPointExtractor(file.getPath());
what i'm doing wrong?
Thanks in forward!
Bye Derya
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f�r GMX Partner: http://www.gmx.net/de/go/partner
---------------------------------------------------------------------
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: hslf Exception
Posted by Nick Burch <ni...@torchbox.com>.
On Tue, 30 Aug 2005, Derya Kasapoglu wrote:
> and the PowerPoint files are not corrupt, i try it with several files
> and i get now the Exception anytime:
Can you attach it as a new bug in bugzilla then?
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: hslf Exception
Posted by Derya Kasapoglu <do...@gmx.de>.
Hi Nick,
thank you for the answer!
Well i try it with these JARs:
poi-3.0-alpha1-20050830.jar
poi-contrib-3.0-alpha1-20050830.jar and
poi-scratchpad-3.0-alpha1-20050830.jar
and the PowerPoint files are not corrupt, i try it with several files
and i get now the Exception anytime:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
at org.apache.poi.util.HexDump.toHex(HexDump.java:406)
at org.apache.poi.util.HexDump.toHex(HexDump.java:397)
at
org.apache.poi.hpsf.UnsupportedVariantTypeException.<init>(UnsupportedVariantTypeException.java:46)
at
org.apache.poi.hpsf.ReadingNotSupportedException.<init>(ReadingNotSupportedException.java:45)
at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:267)
at org.apache.poi.hpsf.Property.<init>(Property.java:146)
at org.apache.poi.hpsf.Section.<init>(Section.java:281)
at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:452)
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:249)
at
org.apache.poi.hpsf.PropertySetFactory.create(PropertySetFactory.java:59)
at org.apache.poi.hslf.HSLFSlideShow.getPropertySet(HSLFSlideShow.java:214)
at org.apache.poi.hslf.HSLFSlideShow.readProperties(HSLFSlideShow.java:182)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:105)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:85)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:72)
at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:73)
at handlers.PPTHandler.getContents(PPTHandler.java:32)
at handlers.PPTHandler.main(PPTHandler.java:50)
and the only thing i do is:
PowerPointExtractor extractor = new PowerPointExtractor(pptFile.getPath());
What could be wrong?
Bye Derya
> --- Ursprüngliche Nachricht ---
> Von: Nick Burch <ni...@torchbox.com>
> An: POI Users List <po...@jakarta.apache.org>
> Betreff: Re: hslf Exception
> Datum: Tue, 30 Aug 2005 10:22:31 +0100 (BST)
>
> Hi Derya
>
> Your previous exception was with the HPSF stuff (author, summary etc).
> That error makes me think you had a corrupt PPT file
>
> On Mon, 29 Aug 2005, Derya Kasapoglu wrote:
> > Now i get this exception:
> >
> > Exception in thread "main" java.lang.RuntimeException: Couldn't
> instantiate
> > the class for type with id 1016 on class class
> > org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren :
>
> This makes me think you haven't properly done the poi build. Did you do a
> CSV check out and then used ant to build the jar files?
>
> > Something who haven't problems with the hslf classes and can send me the
> > jar file!
>
> http://encore.torchbox.com/poi-cvs-build/ has nightly builds. Try with
> poi-3.0-alpha1-20050830.jar and poi-contrib-3.0-alpha1-20050830.jar and
> poi-scratchpad-3.0-alpha1-20050830.jar
>
> 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/
>
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
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: hslf Exception
Posted by Nick Burch <ni...@torchbox.com>.
Hi Derya
Your previous exception was with the HPSF stuff (author, summary etc).
That error makes me think you had a corrupt PPT file
On Mon, 29 Aug 2005, Derya Kasapoglu wrote:
> Now i get this exception:
>
> Exception in thread "main" java.lang.RuntimeException: Couldn't instantiate
> the class for type with id 1016 on class class
> org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren :
This makes me think you haven't properly done the poi build. Did you do a
CSV check out and then used ant to build the jar files?
> Something who haven't problems with the hslf classes and can send me the
> jar file!
http://encore.torchbox.com/poi-cvs-build/ has nightly builds. Try with
poi-3.0-alpha1-20050830.jar and poi-contrib-3.0-alpha1-20050830.jar and
poi-scratchpad-3.0-alpha1-20050830.jar
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: hslf Exception
Posted by Derya Kasapoglu <do...@gmx.de>.
Now i get this exception:
Exception in thread "main" java.lang.RuntimeException: Couldn't instantiate
the class for type with id 1016 on class class
org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren :
java.lang.reflect.InvocationTargetException
at org.apache.poi.hslf.record.Record.createRecordForType(Record.java:151)
at org.apache.poi.hslf.record.Record.findChildRecords(Record.java:102)
at org.apache.poi.hslf.HSLFSlideShow.readFIB(HSLFSlideShow.java:173)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:102)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:85)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:72)
at
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:73)
at handlers.PPTHandler.getContents(PPTHandler.java:33)
at handlers.PPTHandler.main(PPTHandler.java:50)
maybe there is something wrong with my jar files!
I packaged the hslf classes by myself!
Something who haven't problems with the hslf classes and can send me the jar
file!
Thanks in forward!
Bye Derya
> --- Ursprüngliche Nachricht ---
> Von: dozean@gmx.de
> An: poi-user@jakarta.apache.org
> Betreff: hslf Exception
> Datum: Mon, 29 Aug 2005 10:17:38 +0200 (MEST)
>
> Hi,
>
> i want to extract the contents from PowerPoint files.
> I use the hslf classes!
>
> But i get the Exception:
>
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
> at org.apache.poi.util.HexDump.toHex(HexDump.java:406)
> at org.apache.poi.util.HexDump.toHex(HexDump.java:397)
> at
>
org.apache.poi.hpsf.UnsupportedVariantTypeException.<init>(UnsupportedVariantTypeException.java:49)
> at
>
org.apache.poi.hpsf.ReadingNotSupportedException.<init>(ReadingNotSupportedException.java:45)
> at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:267)
> at org.apache.poi.hpsf.Property.<init>(Property.java:146)
> at org.apache.poi.hpsf.Section.<init>(Section.java:281)
> at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:452)
> at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:249)
> at
> org.apache.poi.hpsf.PropertySetFactory.create(PropertySetFactory.java:59)
> at
> org.apache.poi.hslf.HSLFSlideShow.getPropertySet(HSLFSlideShow.java:214)
> at
> org.apache.poi.hslf.HSLFSlideShow.readProperties(HSLFSlideShow.java:182)
> at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:105)
> at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:85)
> at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:72)
> at
>
org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:73)
> at handlers.PPTHandler.getContents(PPTHandler.java:33)
> at handlers.PPTHandler.main(PPTHandler.java:50)
>
> when i initialise:
> PowerPointExtractor extractor = new PowerPointExtractor(file.getPath());
>
> what i'm doing wrong?
>
> Thanks in forward!
> Bye Derya
>
> --
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>
> ---------------------------------------------------------------------
> 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/
>
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++
---------------------------------------------------------------------
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/