Hi, attached you find a JUnit test class (source) for the problem.
Package of the test class: - (default) Required: - JUnit (as present in Eclipse 3.4 EE Ganymede), - POI 3.1 FINAL 20080629 Testing environment was Eclipse 3.4 Ganymede EE and IBM WebSphere Application Server 6.0.2.19 (with IBM JRE 1.4.2 on WinXP-Pro SP3, which was set up as the project's JRE). 2 things added: (1) OK, there is some more code than I provided at first glance, but it is only formatting stuff, as you will see by inspecting the test case. (2) I have a "variant" of the code I provide here -- and this variant works without any problems. If you feel you need this for comparisons, I can build a second test case based on this "code variant". Of course there must be a difference, and that difference must be important. Thanks for investigation, -- Dipl.-Inform. Christian Gosch Systems Development inovex GmbH Karlsruher Strasse 71 D-75179 Pforzheim Tel: 07231 3191-85 Fax: 07231 3191-91 [EMAIL PROTECTED] www.inovex.de Sitz der Gesellschaft: Pforzheim AG Mannheim, HRB 502126 Geschäftsführer: Stephan Müller > -----Original Message----- > From: Nick Burch [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2008 1:28 PM > To: POI Users List > Subject: Re: Problem with POI-3.1-final-20080629, HSSF: > HSSFRow.createCell((short)0) throws IllegalStateException > > On Wed, 27 Aug 2008, Christian Gosch wrote: > > Problem with 3.1 final (20080629): When I start to generate and fill a > > new workbook from scratch, I receive: > > > > java.lang.IllegalStateException: Cannot create value records before row > > records exist > > You shouldn't get that on an empty workbook. Any chance you could write a > small unit test that triggers the problem, then upload it to bugzilla? I > can execute your code snippet just fine, so I can't figure out what's > wrong for you > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > !DSPAM:48b68bb822931511210146! > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
