Обсуждение: org.postgresql.util.PSQLException: An I/O error occured while sending to the backend

Поиск
Список
Период
Сортировка

org.postgresql.util.PSQLException: An I/O error occured while sending to the backend

От
"surabhi.ahuja"
Дата:
hi,
I am using Postgres 8.0.0,
i am getting the following exception in my code, can you please suggest at to what may be going wrong?
The postgres logs do not tell anything.
 
thanks,
regards
Surabhi
 
 

org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.

at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:201)

at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:388)

at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:313)

at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:305)

at com.ge.hc.nuevo.sessions.dbexpress.DBSession.dbxTransaction(DBSession.java:1496)

at com.ge.hc.nuevo.sessions.dbexpress.DBSession.installImage(DBSession.java:1254)

at com.ge.hc.nuevo.sessions.dbexpress.DBSession.installFiles(DBSession.java:737)

at com.ge.med.terra.tap.dm.DMSession.installFiles(DMSession.java:414)

at com.ge.hc.nuevo.services.jmservice.WorkerThread.arRestore(WorkerThread.java:666)

at com.ge.hc.nuevo.services.jmservice.WorkerThread.run(WorkerThread.java:979)

at java.lang.Thread.run(Thread.java:595)

Caused by: java.net.SocketException: Broken pipe

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

at org.postgresql.core.PGStream.flush(PGStream.java:494)

at org.postgresql.core.v3.QueryExecutorImpl.sendSync(QueryExecutorImpl.java:631)

at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:174)

... 10 more

Re: [JDBC] org.postgresql.util.PSQLException: An I/O error occured

От
Oliver Jowett
Дата:
surabhi.ahuja wrote:

> org.postgresql.util.PSQLException: An I/O error occured while sending to
> the backend.

> Caused by: java.net.SocketException: Broken pipe

This is a network error that the driver can't do anything about. If you
have a stateful firewall between the client and the server, perhaps it
is dropping the connection because it has been idle.

-O

Re: [JDBC] org.postgresql.util.PSQLException: An I/O error occured while sending to the backend

От
"surabhi.ahuja"
Дата:
hi,
dont such messages get logged to postgreslog.
Also, is it possible to check wht firewall is dropping the connection between the client and the server.
 
thanks,
regards
Surabhi
 


From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Wed 8/23/2006 12:03 PM
To: surabhi.ahuja
Cc: pgsql-general@postgresql.org; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] org.postgresql.util.PSQLException: An I/O error occured while sending to the backend

***********************
Your mail has been scanned by InterScan VirusWall.
***********-***********


surabhi.ahuja wrote:

> org.postgresql.util.PSQLException: An I/O error occured while sending to
> the backend.

> Caused by: java.net.SocketException: Broken pipe

This is a network error that the driver can't do anything about. If you
have a stateful firewall between the client and the server, perhaps it
is dropping the connection because it has been idle.

-O

Re: [JDBC] org.postgresql.util.PSQLException: An I/O error occured

От
Oliver Jowett
Дата:
surabhi.ahuja wrote:
> hi,
> dont such messages get logged to postgreslog.

You might see something in the backend logs -- "unexpected client EOF"
perhaps? Or just idle backend processes. It depends on exactly what is
going wrong, and the timing of it.

> Also, is it possible to check wht firewall is dropping the connection
> between the client and the server.

That is something you will have to diagnose yourself, it is specific to
your network.

-O