  | | | Error reading excel file | Error reading excel file 2005-05-20 - By nikita rao
Back 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 (LittleEndian.java(Inlined Compiled Code)) at org.apache.poi.util.LittleEndian (LittleEndian.java(Compiled Code)) at org.apache.poi.hssf.record.MulRKRecord (MulRKRecord.java:153) at org.apache.poi.hssf.record.Record (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: poi-user-unsubscribe@(protected) Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
|
|
 |