Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A31AA1337B8F for ; Wed, 24 Nov 2010 21:03:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 50990-04 for ; Thu, 25 Nov 2010 01:02:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailbox13.lycos.com (mail-zbox13.bo3.lycos.com [209.202.250.13]) by mail.postgresql.org (Postfix) with ESMTP id 58D751337B61 for ; Wed, 24 Nov 2010 21:02:56 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailbox13.lycos.com (Postfix) with ESMTP id 10D303B584B for ; Wed, 24 Nov 2010 20:02:56 -0500 (EST) X-Virus-Scanned: amavisd-new at mailbox13.lycos.com Received: from mailbox13.lycos.com ([127.0.0.1]) by localhost (mailbox13.lycos.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xcqCRixSIEVj for ; Wed, 24 Nov 2010 20:02:55 -0500 (EST) Received: from mailbox13.lycos.com (unknown [209.202.250.13]) by mailbox13.lycos.com (Postfix) with ESMTP id 9808B3B582C for ; Wed, 24 Nov 2010 20:02:55 -0500 (EST) Date: Wed, 24 Nov 2010 20:02:54 -0500 (EST) From: vwu98034@lycos.com To: pgsql-jdbc@postgresql.org Message-ID: <9212505.807121290646974384.JavaMail.root@mail-zbox13.bo3.lycos.com> In-Reply-To: <33189534.806201290643141240.JavaMail.root@mail-zbox13.bo3.lycos.com> Subject: Re: Do anyone know the cause of this exception? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [24.83.121.23] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Win)/5.0.18_GA_3028.CentOS5) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/90 X-Sequence-Number: 21211 Never mind. The DB connection was down. After restarted my PC, the connecti= on is up. ----- Original Message ----- From: vwu98034@lycos.com To: pgsql-jdbc@postgresql.org Sent: 2010=E5=B9=B411=E6=9C=8824=E6=97=A5 =E6=98=9F=E6=9C=9F=E4=B8=89 =E4= =B8=8B=E5=8D=8803=E6=97=B659=E5=88=8601=E7=A7=92 GMT -08:00 US/Canada Pacif= ic Subject: [JDBC] Do anyone know the cause of this exception? I have a stable development environment for a quite whole, I get the follow= ing exception suddenly. The database server is up and I can see those proce= sses. And the JDBC driver is in my Maven POM file. I can't figure out why t= he DB connection can't be setup. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~ Caused by: org.postgresql.util.PSQLException: The connection attempt failed= . =09at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne= ctionFactoryImpl.java:150) =09at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor= y.java:66) =09at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Conn= ection.java:125) =09at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Conn= ection.java:30) =09at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gC= onnection.java:22) =09at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Conn= ection.java:30) =09at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) =09at org.postgresql.Driver.makeConnection(Driver.java:393) =09at org.postgresql.Driver.connect(Driver.java:267) =09at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv= erConnectionFactory.java:38) =09at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable= ConnectionFactory.java:294) =09at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas= icDataSource.java:1247) =09at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou= rce.java:1221) =09... 52 more Caused by: java.io.EOFException =09at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:261) =09at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(Connect= ionFactoryImpl.java:269) =09at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne= ctionFactoryImpl.java:108) =09... 64 more --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc