Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCrF2-0002Qh-NX for pgsql-jdbc@arkaria.postgresql.org; Thu, 31 Jul 2014 14:22:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCrF2-00005B-7O for pgsql-jdbc@arkaria.postgresql.org; Thu, 31 Jul 2014 14:22:00 +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 1XCrF1-000055-Ko for pgsql-jdbc@postgresql.org; Thu, 31 Jul 2014 14:21:59 +0000 Received: from chello080108195078.3.13.vie.surfer.at ([80.108.195.78] helo=margarita.erven.at) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCrEy-0007FG-WD for pgsql-jdbc@postgresql.org; Thu, 31 Jul 2014 14:21:58 +0000 Received: from [192.168.217.21] (unknown [193.9.252.69]) by margarita.erven.at (Postfix) with ESMTPSA id 65E247700082; Thu, 31 Jul 2014 16:21:54 +0200 (CEST) Message-ID: <53DA50FF.2040803@erven.at> Date: Thu, 31 Jul 2014 16:21:51 +0200 From: Hannes Erven User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Dave Cramer CC: List Subject: Re: executeQuery() throws "Statement has been closed" References: <53DA04A9.2030101@erven.at> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.6 (/) 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 Hi Dave, > Well if another thread has closed the connection which I suspect is > happening here, then the results of checkClosed is correct. The JDBC connection is only closed when the application exits. Since the message is "statement closed" (as opposed to "connection closed"), I quite sure thats not happening here. It may well be a concurrency issue, since we are sharing one JDBC connections among multiple Hibernate-Sessions. thanks again, -hannes -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc