From: Stephen McConnell <mcconnell_stephen@yahoo.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: An I/O error occured while sending to the backend.
Date: Sat, 15 Jan 2005 11:57:03 -0800 (PST)
Message-ID: <20050115195704.9263.qmail@web41505.mail.yahoo.com> (raw)
In-Reply-To: <41E8C468.5020301@opencloud.com>
I'm gonna tell on myself on this one... and it embarrases me more than
I can say.
I had written a DBManager class that manages connections. It was a
first iteration and I was just using the simple
DriverManager.getConnection(....) method before tackling connection
pooling.
In the DBManager class where I had my "getConnection()" method, I had
my standard JDBC try... catch... finally.... block. I got the
connection, but in my finally block... like I ALWAYS do when I write a
try... catch... finally.... block, I closed the resources. One of
which was the "connection".... :(
Hence, the IO error.....
Thanks for the answer.... once I began looking at the code to give you
an example, I found it.
Stephen McConnell
--- Oliver Jowett <oliver@opencloud.com> wrote:
> Stephen McConnell wrote:
>
> > Exception: java.io.IOException: Stream closed
> > Stack Trace:
> > java.io.IOException: Stream closed
>
> > Others have said this is a TCP/IP problem with a firewall, but it's
> > pretty apparent that since I'm accessing "localhost"
> > (jdbc:postgresql://localhost:5432/test_database) that It's not a
> > "firewall" problem UNLESS there's a problem with the Windoz XP
> > firewall.
>
> No, it doesn't look like a firewall problem -- that usually manifests
> as
> a connection refused or a connection reset by peer. This looks like
> the
> driver is closing the connection itself, but not invalidating the
> connection. I'd suspect an earlier error on the connection is causing
> this.
>
> Do you have a complete testcase I can try?
>
> -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: mcconnell_stephen@yahoo.com, oliver@opencloud.com
Subject: Re: An I/O error occured while sending to the backend.
In-Reply-To: <20050115195704.9263.qmail@web41505.mail.yahoo.com>
References: <41E8C468.5020301@opencloud.com> <20050115195704.9263.qmail@web41505.mail.yahoo.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