poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Agarwal, Garima " <Garima.Agar...@delphi.com>
Subject Urgent help needed: How to read Excel having List type cell
Date Thu, 10 Aug 2006 09:56:34 GMT

Got a project code release, could someone give pointers as to what all I
can try to correct the error?

My code is reading an excel file contains one of the cell as Data ->
validation -> settings -> List type, able to read first time but if I
change the list cell value using the drop down and save and try reading
again I get the following error:



java.lang.reflect.InvocationTargetException



            at
sun.reflect.GeneratedConstructorAccessor134.newInstance(Unknown Source)



            at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)



            at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)



            at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java
:224)



            at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.jav
a:160)



            at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)





Here is the code sample:

(Second time tool is not able to get past the underlined,colored line
even)



FileInputStream inputStream = new FileInputStream(mpiFileLocation);

poiFileSystem = new POIFSFileSystem(inputStream);

workBook = new HSSFWorkbook(poiFileSystem,false);



Please help,

Thanks in advance,

Garima.



****************************************************************************************

Note:  If the reader of this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us immediately by replying
to the message and deleting it from your computer. Thank you.

****************************************************************************************
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message