Created attachment 21786 [details] This powerPoint attachment causes this error. java.lang.RuntimeException: Couldn't instantiate the class for type with id 1006 on class class org.apache.poi.hslf.record.Slide : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 1036 on class class org.apache.poi.hslf.record.PPDrawing : java.lang.reflect.InvocationTargetException Cause was : java.lang.ArrayIndexOutOfBoundsException at org.apache.poi.hslf.record.Record.createRecordForType(Record.java:190) at org.apache.poi.hslf.record.Record.buildRecordAtOffset(Record.java:105) at org.apache.poi.hslf.HSLFSlideShow.read(HSLFSlideShow.java:264) at org.apache.poi.hslf.HSLFSlideShow.buildRecords(HSLFSlideShow.java:235) at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:145) at org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:92) at org.apache.poi.hslf.extractor.PowerPointExtractor.<init>(PowerPointExtractor.java:85) at WARNING: Unable to Index MS PowerPoint Document : Couldn't instantiate the class for type with id 1006 on class class org.apache.poi.hslf.record.Slide : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 1036 on class class org.apache.poi.hslf.record.PPDrawing : java.lang.reflect.InvocationTargetException Cause was : java.lang.ArrayIndexOutOfBoundsException Apr 7, 2008 12:30:17 PM com.sun.comms.iss.indexapi.converter.MSPowerPointConverter getObject WARNING: Unable to Index MS PowerPoint Document : Couldn't instantiate the class for type with id 1006 on class class org.apache.poi.hslf.record.Slide : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 1036 on class class org.apache.poi.hslf.record.PPDrawing : java.lang.reflect.InvocationTargetException Cause was : java.lang.ArrayIndexOutOfBoundsException Apr 7, 2008 12:30:17 PM
Fixed Yegor
*** Bug 44723 has been marked as a duplicate of this bug. ***
Hi there, I get the following exception when trying to read a ppt document. The method that throws this exception is : reader.read(file.getInputStream()); Couldn't instantiate the class for type with id 1006 on class class org.apache.poi.hslf.record.Slide : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 5000 on class class org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 5002 on class class org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 5003 on class class org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : java.lang.reflect.InvocationTargetException Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type with id 12000 on class class org.apache.poi.hslf.record.Comment2000 : java.lang.reflect.InvocationTargetException Cause was : java.lang.IllegalStateException: Third child record wasn't a CString, was of type 12001 I also see a java.lang.RuntimeException for some of the word and ppt documents when we try to open the document using the following line; POIFSFileSystem poifs = new POIFSFileSystem(is);
Which version of POI are you using? Try the latest trunk, daily builds can be downloaded from http://encore.torchbox.com/poi-svn-build/. If the problem persists, please attach the problem file. Without it we can't do much. Yegor (In reply to comment #3) > Hi there, > > I get the following exception when trying to read a ppt document. > The method that throws this exception is : > reader.read(file.getInputStream()); > > Couldn't instantiate the class for type with id 1006 on class class > org.apache.poi.hslf.record.Slide : java.lang.reflect.InvocationTargetException > Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type > with id 5000 on class class > org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : > java.lang.reflect.InvocationTargetException > Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type > with id 5002 on class class > org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : > java.lang.reflect.InvocationTargetException > Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type > with id 5003 on class class > org.apache.poi.hslf.record.DummyPositionSensitiveRecordWithChildren : > java.lang.reflect.InvocationTargetException > Cause was : java.lang.RuntimeException: Couldn't instantiate the class for type > with id 12000 on class class org.apache.poi.hslf.record.Comment2000 : > java.lang.reflect.InvocationTargetException > Cause was : java.lang.IllegalStateException: Third child record wasn't a > CString, was of type 12001 > > I also see a java.lang.RuntimeException for some of the word and ppt documents > when we try to open the document using the following line; > > POIFSFileSystem poifs = new POIFSFileSystem(is);
Created attachment 24158 [details] This attachment contains comments Hi there, This issue I face when I try to read a PPT with comments inserted in that. I am using poi 3.2 and have also tested with beta 3.5 version and the problem still persists. Thanks, Gitu
Changing the status to new!! Plz see the required info provided by me in the earlier comment...
Fixed in r811814 PPT parser didn't properly handle comment containers (Comment2000) with missing comment text. Yegor