Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 75197 invoked from network); 21 Jul 2007 21:59:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2007 21:59:39 -0000 Received: (qmail 63562 invoked by uid 500); 21 Jul 2007 21:59:40 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 63021 invoked by uid 500); 21 Jul 2007 21:59:39 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 62998 invoked by uid 99); 21 Jul 2007 21:59:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 14:59:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [81.169.146.188] (HELO mo-p07-ob.rzone.de) (81.169.146.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 14:59:36 -0700 Received: from [192.168.179.21] (pD9E009F1.dip0.t-ipconnect.de [217.224.9.241]) by post.webmailer.de (mrclete mo40) (RZmta 9.1) with ESMTP id L00d19j6LKcCfm ; Sat, 21 Jul 2007 23:59:14 +0200 (MEST) Message-ID: <46A281AD.7090408@apconsult.de> Date: Sat, 21 Jul 2007 23:59:09 +0200 From: David Law User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: user@poi.apache.org Subject: Bug in org.apache.poi.hssf.model.Sheet Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RZG-AUTH: puye/FhS9STT7b4I/Eic3a0zF3qDDWmpQAKtSETgMq+oEpiTIPEh7AOP+dM8TiEXGqpi+7EvvQ== X-RZG-CLASS-ID: mo07 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I think I've found a problem in org.apache.poi.hssf.model.Sheet, I was trying to subclass HSSFSheet, but calling super(Workbook, Sheet) returns an Object with no rows. The reason is the Method getNextRow in Sheet which is only able to return the rows once as there is no provision for nulling rowRecIterator. I added a Method "setFirstRow" to reset rowRecIterator and it fixed my problem. Any thoughts about this "solution" anybody? Regards, DaveLaw --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org