Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CC0C06339D2 for ; Tue, 6 Apr 2010 01:12:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 38264-05 for ; Tue, 6 Apr 2010 04:12:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by mail.postgresql.org (Postfix) with ESMTP id D394D63320D for ; Tue, 6 Apr 2010 01:12:20 -0300 (ADT) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 27C86AE6A0; Tue, 6 Apr 2010 12:10:40 +0800 (WST) Message-ID: <4BBAB406.4080303@postnewspapers.com.au> Date: Tue, 06 Apr 2010 12:09:42 +0800 From: Craig Ringer User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Breno BF CC: pgsql-jdbc@postgresql.org Subject: Re: An I/O error occured while sending to the backend. References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.822 tagged_above=-10 required=5 tests=AWL=-0.823, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/2 X-Sequence-Number: 20413 Breno BF wrote: > I am getting this error using glassfish and postgresql: " Caused by: > org.postgresql.util.PSQLException: An I/O error occured while sending to > the backend." Further in the exception log, you'll see: Caused by: java.net.SocketException: Socket closed In other words, the pgsql backend has "hung up" on the client. Most likely the Pg backend terminated for some reason, which you should see in the PostgreSQL logs. > log_min_messages = error > log_min_error_statement = error Turn these down to at least 'info', restart PostgreSQL, and see if you get anything informative in the logs. -- Craig Ringer