Re: An I/O error occured while sending to the backend.

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Breno BF <brenobfernandes(at)bsd(dot)com(dot)br>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: An I/O error occured while sending to the backend.
Date: 2010-04-06 04:09:42
Message-ID: 4BBAB406.4080303@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2010-04-06 05:52:18 Re: Statement.cancel() doesn't seem to work
Previous Message JN 2010-04-06 01:56:05 Statement.cancel() doesn't seem to work