Hi Garima. Which POI version do you use?
"Long" ago there were such problems using 2.5 which were not in 2.0. But I think already with 2.5.1 such problems were removed. If you're using a quite new version that something different should be the reason. Regards, Karl-Heinz. -----Ursprüngliche Nachricht----- Von: Agarwal, Garima [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. August 2006 11:57 An: [email protected] Betreff: Urgent help needed: How to read Excel having List type cell 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. **************************************************************************** ************ --------------------------------------------------------------------- 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/
