Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 53001 invoked from network); 19 May 2008 15:07:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 15:07:06 -0000 Received: (qmail 67908 invoked by uid 500); 19 May 2008 15:07:07 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 67882 invoked by uid 500); 19 May 2008 15:07:07 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 67840 invoked by uid 99); 19 May 2008 15:07:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 08:07:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 15:06:21 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 16205234C117; Mon, 19 May 2008 08:06:41 -0700 (PDT) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 45038] New: Unable to construct record instance ( HSSFWorkbook) X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pechereau_l@yahoo.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 19 May 2008 08:06:41 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45038 Summary: Unable to construct record instance (HSSFWorkbook) Product: POI Version: 3.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: HSSF AssignedTo: dev@poi.apache.org ReportedBy: pechereau_l@yahoo.fr Hello, with the version 3.0.1 of POI I can do this code : is = new FileInputStream(myExcelFile); POIFSFileSystem poifsFileSystem = new POIFSFileSystem(is); HSSFWorkbook wb = new HSSFWorkbook(poifsFileSystem, false); However, when I want to use the version 3.0.2 of POI (for use the Class "HSSFFormulaEvaluator"), it's impossible : HSSFWorkbook wb = new HSSFWorkbook(poifsFileSystem, false); // Exception with 3.0.2 (and 2.5.1), no probleme with 3.0.1 The Exception is : org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:199) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:117) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:207) at business.extractfees.Go.doTreatmentByExcelFile(Go.java:298) at business.extractfees.Go.extractDataFromRepertoryGeneral(Go.java:205) at business.extractfees.Go.doTreatment(Go.java:87) at business.extractfees.Go.main(Go.java:67) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:187) ... 6 more Caused by: java.lang.UnsupportedOperationException: Unknown Ptg in Formula: 0x2 (2) at org.apache.poi.hssf.record.formula.Ptg.createPtg(Ptg.java:357) at org.apache.poi.hssf.record.DVRecord.fillFields(DVRecord.java:201) at org.apache.poi.hssf.record.Record.(Record.java:55) at org.apache.poi.hssf.record.DVRecord.(DVRecord.java:134) ... 11 more I use for POI 3.0.1 : 3.0.1 : poi-3.0.1-FINAL-20070705.jar poi-contrib-3.0.1-FINAL-20070705.jar poi-scratchpad-3.0.1-FINAL-20070705.jar and for POI 3.0.2 : poi-3.0.2-FINAL-20080204.jar poi-contrib-3.0.2-FINAL-20080204.jar poi-scratchpad-3.0.2-FINAL-20080204.jar NB : the file that I open is not on my station, but on the network; and the file is open ONLY for reading (protected by password if you want to write). So, is it normal that I can open the file with the version 3.0.1, but not with 3.0.2 ? Is it possible to try to evaluate a Formula with POI 3.0.1 ? Sincerely, -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org