Skip site navigation (1) Skip section navigation (2)

Re: Do anyone know the cause of this exception?

From: vwu98034(at)lycos(dot)com
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Do anyone know the cause of this exception?
Date: 2010-11-25 01:02:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Never mind. The DB connection was down. After restarted my PC, the connection is up.

----- Original Message -----
From: vwu98034(at)lycos(dot)com
To: pgsql-jdbc(at)postgresql(dot)org
Sent: 2010年11月24日 星期三 下午03时59分01秒 GMT -08:00 US/Canada Pacific
Subject: [JDBC] Do anyone know the cause of this exception?

I have a stable development environment for a quite whole, I get the following exception suddenly. The database server is up and I can see those processes. And the JDBC driver is in my Maven POM file. I can't figure out why the DB connection can't be setup.

Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(
	at org.postgresql.core.ConnectionFactory.openConnection(
	at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(
	at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(
	at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(
	at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(
	at org.postgresql.jdbc4.Jdbc4Connection.<init>(
	at org.postgresql.Driver.makeConnection(
	at org.postgresql.Driver.connect(
	at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(
	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
	at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
	at org.apache.commons.dbcp.BasicDataSource.createDataSource(
	... 52 more
Caused by:
	at org.postgresql.core.PGStream.ReceiveChar(
	at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(
	... 64 more

In response to

pgsql-jdbc by date

Next:From: Maciek SakrejdaDate: 2010-11-25 07:25:14
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
Previous:From: vwu98034Date: 2010-11-24 23:59:01
Subject: Do anyone know the cause of this exception?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group