X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 757193A2CB2 for ; Sat, 15 Jan 2005 19:57:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47749-07 for ; Sat, 15 Jan 2005 19:57:04 +0000 (GMT) Received: from web41505.mail.yahoo.com (web41505.mail.yahoo.com [66.218.93.88]) by svr1.postgresql.org (Postfix) with SMTP id 709403A2CB4 for ; Sat, 15 Jan 2005 19:57:04 +0000 (GMT) Received: (qmail 9265 invoked by uid 60001); 15 Jan 2005 19:57:04 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=hrn+UJxjF7WLwm0zOVUpgCHU25qXgqIXC/9okHyaev/4Pu2iqslD0AF1gHmnd58+lGxC4bIJIFCuJ8siYE1V2IBJdRjxBz3NvW+mnMwDmP7jVMi7HeMXCTpyK1AkGTf3HPAZOBOgEaTRJ4upOtggs7YcYEMuKy2QYcimCIrr0dI= ; Message-ID: <20050115195704.9263.qmail@web41505.mail.yahoo.com> Received: from [68.32.70.59] by web41505.mail.yahoo.com via HTTP; Sat, 15 Jan 2005 11:57:03 PST Date: Sat, 15 Jan 2005 11:57:03 -0800 (PST) From: Stephen McConnell Subject: Re: An I/O error occured while sending to the backend. To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <41E8C468.5020301@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.374 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200501/149 X-Sequence-Number: 12029 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 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 > =====