Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 23AA22E003E for ; Mon, 18 Feb 2008 10:19:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52915-01-2 for ; Mon, 18 Feb 2008 10:19:45 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by postgresql.org (Postfix) with ESMTP id 650D42E003D for ; Mon, 18 Feb 2008 10:19:42 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id i10so1586941mue.5 for ; Mon, 18 Feb 2008 06:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=yEafhE14dyeO9tk+5Bz4dscqwX0/VePlhPa/Fnpok/U=; b=uD0nltjLwQEd6mPrI/A4vh6UA2LCJt6B2kmsSquv0CMP+A7OlVO6pl2sih4sek1TlO551dKkeOFHxPls6pX16BEWQ72kxL+pcaoWWvXOeCQJzmbDs/PIK6fc7hBpACsko/1rhVzNl/A0AODFUgsg/VYbcV8p3ZQftCPzNpniBJ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=vL21bQb4txojBVgdd51dscFwXTbUuU+uFygs2QKAXwd6eGX7s7TQXC4Lwnmy07TlR2ubO92KjWxtzqKBULj7s5LmKpET/wPpbVlaLzVfzKkbYtM2SdcKfRKTX3TKzk4bGtkaNRDG18zRBpD5cmmJvfJ02f+zrY6eOPKVBXnTapE= Received: by 10.82.108.9 with SMTP id g9mr10005878buc.37.1203344377436; Mon, 18 Feb 2008 06:19:37 -0800 (PST) Received: by 10.82.180.9 with HTTP; Mon, 18 Feb 2008 06:19:37 -0800 (PST) Message-ID: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com> Date: Mon, 18 Feb 2008 09:19:37 -0500 From: "Paul Tomblin" To: pgsql-jdbc@postgresql.org Subject: Getting "This ResultSet is closed" exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200802/120 X-Sequence-Number: 18327 I have some code that works most of the time, but I left it running overnight and at 3am I got the "This ResultSet is closed" exception on the "while (rs.next())" line in the following code: ResultSet rs = getPerformancesOnVenueStmt.executeQuery(); while(rs.next()) { Performance performance = parseResultSet(null, null, rs); if (performance != null) retList.add(performance); } rs.close(); The method "parseResultSet" does not close the result set, it just does the various "rs.get..." calls and creates a Performance object. Is it possible that another thread doing a commit on the same Connection could cause this? -- For my assured failures and derelictions I ask pardon beforehand of my betters and my equals in my Calling here assembled, praying that in the hour of my temptations, weakness and weariness, the memory of this my Obligation and of the company before whom it was entered into, may return to me to aid, comfort and restrain.