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 <[EMAIL PROTECTED]>
> An: POI Users List <[email protected]>
> 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: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/