pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Breno BF <brenobfernandes@bsd.com.br>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: An I/O error occured while sending to the backend.
Date: Tue, 06 Apr 2010 12:09:42 +0800
Message-ID: <4BBAB406.4080303@postnewspapers.com.au> (raw)
In-Reply-To: <v2ma21be61a1004051841vd6abc9f2gd79945115103661e@mail.gmail.com>
References: <v2ma21be61a1004051841vd6abc9f2gd79945115103661e@mail.gmail.com>

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



view thread (27+ messages)  latest in thread

Message-ID: <4BBAB406.4080303@postnewspapers.com.au>
Permalink:  ../4BBAB406.4080303@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4BBAB406.4080303@postnewspapers.com.au

 · 

reply

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: craig@postnewspapers.com.au, brenobfernandes@bsd.com.br
  Subject: Re: An I/O error occured while sending to the backend.
  In-Reply-To: <4BBAB406.4080303@postnewspapers.com.au>
  References: <v2ma21be61a1004051841vd6abc9f2gd79945115103661e@mail.gmail.com> <4BBAB406.4080303@postnewspapers.com.au>

* 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