Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCwYR-0004Vi-Mu for pgsql-jdbc@arkaria.postgresql.org; Thu, 31 Jul 2014 20:02:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCwYR-0000RC-2N for pgsql-jdbc@arkaria.postgresql.org; Thu, 31 Jul 2014 20:02:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCwYQ-0000R6-Co for pgsql-jdbc@postgresql.org; Thu, 31 Jul 2014 20:02:22 +0000 Received: from nm25-vm6.bullet.mail.ne1.yahoo.com ([98.138.91.118]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCwYM-00055Y-Bf for pgsql-jdbc@postgresql.org; Thu, 31 Jul 2014 20:02:21 +0000 Received: from [98.138.100.115] by nm25.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jul 2014 20:02:15 -0000 Received: from [98.138.87.10] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jul 2014 20:02:15 -0000 Received: from [127.0.0.1] by omp1010.mail.ne1.yahoo.com with NNFMP; 31 Jul 2014 20:02:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 193715.62765.bm@omp1010.mail.ne1.yahoo.com Received: (qmail 52473 invoked by uid 60001); 31 Jul 2014 20:02:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1406836935; bh=OhluGWH0anR26jHmUB2/vkDEu2k4yIPF8ycrv9VDJ4s=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oZ0NB+zgQMrb/BnsvGkCBPfnTbYOXpGV0Mjul+uH1DtXKUdKDJd9PAG1eP8XSlVCaMjfmO16keQFXA3mzNEzm2wI7mZo1lrCqiUEPrNxawsAz6Au9+3eUt5IhHpi0WtvBLPwvVgU8L8c8IyM/rp0ZynHEP2iIlGTImEuNBIdA1E= X-YMail-OSG: ml26I74VM1mmoTF69bgODTAUdh_UWL5nRtBT2u_YmIOmrES 6RJgTAMXYaJs0bpl.QVUu5ptY1RPJAEJDIxrqo9J8LWKOaToJI_euunJtwgZ wZPpPfNZBsTBQhLIQSYQ3l9HpDltIHqDMx7h1YCClNQ1iKxLT6KWXa17dQsN Rv4wO.7gp9aYWUhekFRH49pDTEoI8lxWzRUDxiYYC_5QVGcQfoTitJCsuI35 YhX59_Zu9WzGmZdzxjTcT2M4J4TtLDZF3m3MqipCBO9.zkmdqUWXb65ug7YU YGj3ChcmRL8cLdo9n05Rx9ZSF9J_AOxW26gx8kL4DF5iKrgo_La4SfUCkLQ0 jNZbTx0z2UBCc1wrKcw5j2b2n9gTydf3uu9GHF6fQyY6W21x7EeCsth0aA.k mnMq39SXaCqkDCHRzbRATyFh45pR_I9nAWOl9NCIYAVidXcboIwrsthwoxif Fq7HhiI.Zpttngxh5UR2tk_VCqu8k38n9KT0CHO_D8S1F20yvlpgJASvIcBK hAMBNhd3w_9MGkaNJuF9q.DyNYvxuFERvfu7MABPSr9ng64e.tPcPs3KhTIc UCkyNmP1KP6hZwJtw1tI- Received: from [24.178.25.147] by web122305.mail.ne1.yahoo.com via HTTP; Thu, 31 Jul 2014 13:02:14 PDT X-Rocket-MIMEInfo: 002.001, SGFubmVzIEVydmVuIDxoYW5uZXNAZXJ2ZW4uYXQ.IHdyb3RlOgoKPiBBcyBLZXZpbiBwb2ludGVkIG91dCAodGhhbmtzISksIGdldE1heFJvd3MoKSBpcyByZXF1aXJlZCBieSB0aGUKPiBzcGVjIHRvIGNoZWNrIHdoZXRoZXIgdGhlIGNvbm5lY3Rpb24gaXMgc3RpbGwgb3Blbi4KCkl0J3MgbW9yZSBzdHJpY3QgdGhhbiB0aGF0IC0tIGl0IGlzIHJlcXVpcmVkIHRvIHRocm93IGFuIGV4Y2VwdGlvbgppZiB0aGUgKlN0YXRlbWVudCogaGFzIGJlZW4gY2xvc2VkLsKgIE9mIGNvdXJzZSwgY2xvc2luZyBhCkNvbm4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.198.689 References: <53DA04A9.2030101@erven.at> <53DA50FF.2040803@erven.at> <53DA9A0B.6090404@erven.at> Message-ID: <1406836934.94692.YahooMailNeo@web122305.mail.ne1.yahoo.com> Date: Thu, 31 Jul 2014 13:02:14 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: executeQuery() throws "Statement has been closed" To: Hannes Erven , Dave Cramer Cc: List In-Reply-To: <53DA9A0B.6090404@erven.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hannes Erven wrote: > As Kevin pointed out (thanks!), getMaxRows() is required by the > spec to check whether the connection is still open. It's more strict than that -- it is required to throw an exception if the *Statement* has been closed.=A0 Of course, closing a Connection will automatically close all Statement objects associated with that connection, but the Statement object can, and often is, closed before the Connection. So, something is closing the Statement (directly or indirectly) and then there is an attempt to use it.=A0 You need to figure out how that happens. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc