X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7FF9D11F64E0 for ; Thu, 27 Apr 2006 08:35:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 99714-09 for ; Thu, 27 Apr 2006 08:34:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id F0CF311F645C for ; Thu, 27 Apr 2006 08:34:52 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.195]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FZ4lk-0006Pk-Nd; Thu, 27 Apr 2006 23:34:49 +1200 Message-ID: <4450AC51.5050305@opencloud.com> Date: Thu, 27 Apr 2006 20:34:41 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?windows-1252?Q?Jaime_Viz=E1n?= CC: pgsql-jdbc@postgresql.org Subject: Re: Error 08S01 (COMMUNICATION_ERROR) References: <20060427103905.4078A170005@mail.seglan.com> In-Reply-To: <20060427103905.4078A170005@mail.seglan.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/166 X-Sequence-Number: 15100 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