Обсуждение: I/O error

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

I/O error

От
Antonini Roberto
Дата:

Hi all,

Someone could explain to me the meaning of this exception:

 

An I/O error occured while reading from backend - Exception: java.net.SocketException: Connection reset

 

java.net.SocketException: Connection reset

        at java.net.SocketInputStream.read(SocketInputStream.java:168)

        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)

        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)

        at org.postgresql.PG_Stream.ReceiveChar(Unknown Source)

        at org.postgresql.core.QueryExecutor.execute(Unknown Source)

        at org.postgresql.Connection.ExecSQL(Unknown Source)

        at org.postgresql.jdbc2.Statement.execute(Unknown Source)

        at org.postgresql.jdbc2.Statement.executeQuery(Unknown Source)

 

when I try to invoke DB function to remote DB.

could it be a driver trouble?

 

Thanks,

Roberto.

 

Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to
MailAdmin@tilab.com. Thank you
====================================================================

Re: I/O error

От
Oliver Jowett
Дата:
Antonini Roberto wrote:
> Hi all,
>
> Someone could explain to me the meaning of this exception:
>
>
>
> *An I/O error occured while reading from backend - Exception:
> java.net.SocketException: Connection reset*
>
> when I try to invoke DB function to remote DB.
>
> could it be a driver trouble?

The driver is reporting a TCP/IP-level communication error.

The usual cause is a stateful firewall betweeen the JDBC client and the
server. A connection that stays idle for a long time may be considered
dead and dropped by the firewall, and you will see a "connection reset"
error when it is eventually reused.

-O