From: Oliver Jowett <oliver@opencloud.com>
To: Jaime Vizán <jvizan@seglan.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error 08S01 (COMMUNICATION_ERROR)
Date: Thu, 27 Apr 2006 20:34:41 +0900
Message-ID: <4450AC51.5050305@opencloud.com> (raw)
In-Reply-To: <20060427103905.4078A170005@mail.seglan.com>
References: <20060427103905.4078A170005@mail.seglan.com>
Jaime Vizán wrote:
> java.net.SocketException: Socket closed
> at org.postgresql.core.PGStream.flush(PGStream.java:415)
> at org.postgresql.jdbc1.AbstractJdbc1Connection.closeV3(AbstractJdbc1Connection.java:1147)
> at org.postgresql.jdbc1.AbstractJdbc1Connection.close(AbstractJdbc1Connection.java:1133)
> at com.seglan.helena.BDConn.close(BDConn.java:112)
> at com.seglan.helena.aplicaciones.DownloadDevolD.finalize(DownloadDevolD.java:154)
> at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
> at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.ja
Closing connections from a finalizer can be a bit hairy, as the
connection itself also has a finalizer that closes it down and it's not
defined which one runs first .. If the connection's finalizer is run
first, you will see this exception.
> The PSQLException’s sql state tell me about COMMUNICATION ERROR but
> PSQLException’s error code tell me about Successful Completion. I dont
> know whether there is an error. I am confuse.
The error code is vendor-specific, and the postgresql driver doesn't
assign any meaning to it: it is always 0.
Use the SQLState, which is somewhat standardized.
-O
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: oliver@opencloud.com, jvizan@seglan.com
Subject: Re: Error 08S01 (COMMUNICATION_ERROR)
In-Reply-To: <4450AC51.5050305@opencloud.com>
References: <20060427103905.4078A170005@mail.seglan.com> <4450AC51.5050305@opencloud.com>
* 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