From: Oliver Jowett <oliver@opencloud.com>
To: Sathyajith G <sathyajith@inbox.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: exception while upgrading driver
Date: Wed, 08 Jun 2005 09:46:38 +1200
Message-ID: <42A615BE.9070603@opencloud.com> (raw)
In-Reply-To: <970549EC73A.000005A3sathyajith@inbox.com>
References: <9648e4d3482.000004d1sathyajith@inbox.com>
<970549EC73A.000005A3sathyajith@inbox.com>
Sathyajith G wrote:
> public static ResultSet getResultSet(String sql)
> {
> ResultSet rs;
> try{
> rs=stmt.executeQuery(sql);
> }catch(Exception e)
> {System.err.println("error");
> rs=null;
> }
> return rs;
> }
Where does 'stmt' come from?
Can we see a compilable testcase that shows the problem? Code fragments
really aren't too useful for this sort of problem -- we need to see
everything involved with talking to the JDBC driver. e.g. perhaps the
lifetime of your Statement is not what you think it is and it's getting
GCed unexpectedly.. but I can't say for sure without seeing the actual
code you're running.
-O
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: oliver@opencloud.com, sathyajith@inbox.com, books@ejurka.com
Subject: Re: exception while upgrading driver
In-Reply-To: <42A615BE.9070603@opencloud.com>
References: <9648e4d3482.000004d1sathyajith@inbox.com> <970549EC73A.000005A3sathyajith@inbox.com> <42A615BE.9070603@opencloud.com>
* 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