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 2AC9E11F657F for ; Thu, 27 Apr 2006 07:38:49 -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 89796-07-3 for ; Thu, 27 Apr 2006 07:38:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.seglan.com (unknown [212.49.181.248]) by postgresql.org (Postfix) with ESMTP id 8C6DC11F66EA for ; Thu, 27 Apr 2006 07:38:34 -0300 (ADT) Received: from localhost (mail [127.0.0.1]) by mail.seglan.com (Postfix) with ESMTP id 9FF72170029 for ; Thu, 27 Apr 2006 12:39:06 +0200 (CEST) Received: from mail.seglan.com ([127.0.0.1]) by localhost (mail.seglan.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07894-10 for ; Thu, 27 Apr 2006 12:39:06 +0200 (CEST) Received: from seglan3c93a0b8 (50.Red-83-49-219.dynamicIP.rima-tde.net [83.49.219.50]) by mail.seglan.com (Postfix) with ESMTP id 4078A170005 for ; Thu, 27 Apr 2006 12:39:05 +0200 (CEST) From: =?iso-8859-1?Q?Jaime_Viz=E1n?= To: Subject: Error 08S01 (COMMUNICATION_ERROR) Date: Thu, 27 Apr 2006 12:38:29 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C669F7.7CD41430" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcZp5riR2ASsRniaSgekHlzPf+VzSw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Message-Id: <20060427103905.4078A170005@mail.seglan.com> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at seglan.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/165 X-Sequence-Number: 15099 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C669F7.7CD41430 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 I=92m using PostgresSQL 7.4.7, pg74.215.jdbc3.jar in a computer which = has Debian GNU/Linux 3.1. Sometimes, when the database=92s connection is = going to close I get the next PSQLException: =20 org.postgresql.util.PSQLException: An I/O error has occured while = flushing the output - Exception: java.net.SocketException: Socket closed Stack Trace: =20 java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99) at = java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66) at = java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124) at org.postgresql.core.PGStream.flush(PGStream.java:411) at org.postgresql.jdbc1.AbstractJdbc1Connection.closeV3(AbstractJdbc1Connect= ion .java:1147) at org.postgresql.jdbc1.AbstractJdbc1Connection.close(AbstractJdbc1Connectio= n.j ava:1133) =85=85=85 =20 End of Stack Trace =20 at org.postgresql.core.PGStream.flush(PGStream.java:415) at org.postgresql.jdbc1.AbstractJdbc1Connection.closeV3(AbstractJdbc1Connect= ion .java:1147) at org.postgresql.jdbc1.AbstractJdbc1Connection.close(AbstractJdbc1Connectio= n.j ava:1133) at com.seglan.helena.BDConn.close(BDConn.java:112) at com.seglan.helena.aplicaciones.DownloadDevolD.finalize(DownloadDevolD.jav= a:1 54) 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.java:160) =20 I have catch this exception and I have got=85 =20 PSQLException's error code: 0 PSQLException's cause: null PSQLException's sql state: 08S01 =20 The PSQLException=92s sql state tell me about COMMUNICATION ERROR but PSQLException=92s error code tell me about Successful Completion. I dont = know whether there is an error. I am confuse. Does anyone explain me why happen this? =20 Thanks in advance. ------=_NextPart_000_0000_01C669F7.7CD41430 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m using PostgresSQL 7.4.7, pg74.215.jdbc3.jar = in a computer which has Debian GNU/Linux 3.1. Sometimes, when the = database’s connection is going to close I get the next = PSQLException:

 

org.postgresql.util.PSQLException: An I/O error has = occured while flushing the output - Exception: = java.net.SocketException:

Socket closed

Stack Trace:

 

java.net.SocketException: Socket = closed

=A0=A0=A0=A0=A0=A0=A0 at = java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:99)<= /o:p>

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

=A0=A0=A0=A0=A0=A0=A0 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)

=A0=A0=A0=A0=A0=A0=A0 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)

=A0 =A0=A0=A0=A0=A0=A0at org.postgresql.core.PGStream.flush(PGStream.java:411)

=A0=A0=A0=A0=A0=A0=A0 at org.postgresql.jdbc1.AbstractJdbc1Connection.closeV3(AbstractJdbc1Connect= ion.java:1147)

=A0=A0=A0=A0=A0=A0=A0 at org.postgresql.jdbc1.AbstractJdbc1Connection.close(AbstractJdbc1Connectio= n.java:1133)

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = ………

 

End of Stack Trace

 

=A0=A0=A0=A0=A0=A0=A0 at org.postgresql.core.PGStream.flush(PGStream.java:415)

=A0=A0=A0=A0=A0=A0=A0 at org.postgresql.jdbc1.AbstractJdbc1Connection.closeV3(AbstractJdbc1Connect= ion.java:1147)

=A0=A0=A0=A0=A0=A0=A0 at = org.postgresql.jdbc1.AbstractJdbc1Connection.close(AbstractJdbc1Connectio= n.java:1133)

=A0=A0=A0=A0=A0=A0=A0 at = com.seglan.helena.BDConn.close(BDConn.java:112)<= /p>

=A0=A0=A0=A0=A0=A0=A0 at com.seglan.helena.aplicaciones.DownloadDevolD.finalize(DownloadDevolD.jav= a:154)

=A0=A0=A0=A0=A0=A0=A0 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native = Method)

=A0=A0=A0=A0=A0=A0=A0 at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)=

=A0=A0=A0=A0=A0=A0=A0 at java.lang.ref.Finalizer.access$100(Finalizer.java:14)

=A0=A0=A0=A0=A0=A0=A0 at = java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

 

I have catch this exception and I have = got…

 

PSQLException's error code: = 0

PSQLException's cause: = null

PSQLException's sql state: = 08S01

 

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.

Does anyone explain me why happen = this?

 

Thanks in advance.

------=_NextPart_000_0000_01C669F7.7CD41430--