Re: executeQuery() throws "Statement has been closed"

From: Hannes Erven <hannes(at)erven(dot)at>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: executeQuery() throws "Statement has been closed"
Date: 2014-07-31 14:21:51
Message-ID: 53DA50FF.2040803@erven.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2014-07-31 14:27:36 Re: executeQuery() throws "Statement has been closed"
Previous Message Dave Cramer 2014-07-31 13:57:02 Re: executeQuery() throws "Statement has been closed"