To start debugging, save the file to disk from struts, and then use POI on it.. it will give you an idea of where to look.
On Fri, 2005-05-20 at 11:56 +0100, nikita rao wrote: > Hi all, > > I am using HSSF in my web application to read an > excel file uploaded by the user. The application is > struts based and the input stream from the > struts.upload.FormFile object is passed to the > POIFSFileSystem constructor. I am getting the > following error when trying to parse a particular > excel file: > > java.lang.reflect.InvocationTargetException: > java.lang.ArrayIndexOutOfBoundsException: 11 > at > org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java(Inlined > Compiled Code)) > at > org.apache.poi.util.LittleEndian.getShort(LittleEndian.java(Compiled > Code)) > at > org.apache.poi.hssf.record.MulRKRecord.fillFields(MulRKRecord.java:153) > at > org.apache.poi.hssf.record.Record.fillFields(Record.java:90) > at > org.apache.poi.hssf.record.Record.<init>(Record.java:55) > at > org.apache.poi.hssf.record.MulRKRecord.<init>(MulRKRecord.java:65) > > > However a stand alone test class using HSSF parses the > same file without any problem. I am using POI ver 2.5 > . > > I dont know where to start debugging :-( > > Has anyone encountered similar problems, please let me > know. > > Thanks in advance, > > nikita. > > ________________________________________________________________________ > Yahoo! India Matrimony: Find your life partner online > Go to: http://yahoo.shaadi.com/india-matrimony > > --------------------------------------------------------------------- > 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/
