pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannes Erven <hannes@erven.at>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: executeQuery() throws "Statement has been closed"
Date: Thu, 31 Jul 2014 16:21:51 +0200
Message-ID: <53DA50FF.2040803@erven.at> (raw)
In-Reply-To: <CADK3HH+9x3Ni8y=KzyUsdsLN5j3cZUcbvjMKC7mmt8o3zCTK3A@mail.gmail.com>
References: <53DA04A9.2030101@erven.at>
	<CADK3HH+9x3Ni8y=KzyUsdsLN5j3cZUcbvjMKC7mmt8o3zCTK3A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (10+ messages)  latest in thread

Message-ID: <53DA50FF.2040803@erven.at>
Permalink:  ../53DA50FF.2040803@erven.at/
Also on:    postgresql.org/message-id/53DA50FF.2040803@erven.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: hannes@erven.at, pg@fastcrypt.com
  Subject: Re: executeQuery() throws "Statement has been closed"
  In-Reply-To: <53DA50FF.2040803@erven.at>
  References: <53DA04A9.2030101@erven.at> <CADK3HH+9x3Ni8y=KzyUsdsLN5j3cZUcbvjMKC7mmt8o3zCTK3A@mail.gmail.com> <53DA50FF.2040803@erven.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox