Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9FC542E0063 for ; Mon, 18 Feb 2008 15:00:27 -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 46300-02-4 for ; Mon, 18 Feb 2008 15:00:24 -0400 (AST) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by postgresql.org (Postfix) with ESMTP id 654902E0045 for ; Mon, 18 Feb 2008 14:59:33 -0400 (AST) Received: by fk-out-0910.google.com with SMTP id b27so2090220fka.3 for ; Mon, 18 Feb 2008 10:59:31 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zdfQOaVEEFP17B5kNgAUcckePXtB6xhAhtOdD5rhELc=; b=fonLjL9yWJOgYyHSVSMm2c0kQR0VrXUp2KbMC2ny+TMS1sbfwqZZBB+Iulse4wihKmf5jaZitZD8O9a0FA609QRyFzmJP9ZmEasN1qxX/0xiM/9/mSGO5A1dco1xHhyfd+M/9D5BPQlZO2FkQO6kiR7rcRMmFN/yt/LUq/pbTao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r8nOk/cfQ8MwAqOwWwkgtcbbEPopbNvFmUCuyfy6wEbzluJa2apsjH5W9FERNzm9EbBDzVMeuz7YBwHMRp56Y1+ijmgKY476zArZL6h/RnXjqEoPnPTOTKs3WqIhibcPDnSHGoYyUr+o+Iy7Z9/isHB1x4dHW8ihgKJ8QGSLKrI= Received: by 10.82.116.15 with SMTP id o15mr12456036buc.3.1203361171479; Mon, 18 Feb 2008 10:59:31 -0800 (PST) Received: by 10.82.180.9 with HTTP; Mon, 18 Feb 2008 10:59:31 -0800 (PST) Message-ID: <8efd35820802181059x45bf1f0el712930cffa58ed6@mail.gmail.com> Date: Mon, 18 Feb 2008 13:59:31 -0500 From: "Paul Tomblin" To: pgsql-jdbc@postgresql.org Subject: Re: Getting "This ResultSet is closed" exceptions In-Reply-To: <3fccaa690802181051r377afa2an33fb9e1a3a7b65ca@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com> <3fccaa690802181051r377afa2an33fb9e1a3a7b65ca@mail.gmail.com> 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/122 X-Sequence-Number: 18329 On Feb 18, 2008 1:51 PM, Andres Olarte wrote: > Another thread my close the result set if it's using the same > statement. Or the thread may close the connection, but i think that > would throw another exception. Other wise your code look right Well, no other method is using the same PreparedStatement. So I guess it's likely that another thread is doing the same query, and that's what's closing the ResultSet. I guess it's time to make some of these methods synchronized. -- 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.