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

Cannot create PoolableConnectionFactory

From: zqzuk <ziqi(dot)zhang(at)hotmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Cannot create PoolableConnectionFactory
Date: 2007-01-09 21:30:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Hi,  I am using PostgreSQL with Spring, Hibernate on my web application. I
came across such an exception when my application attempts to query the
database. It is strange that it didnt happen when the application creates
and populates databases; but when it performs "selects" operations. The
exception message is:

Exception invoking listener method onLogin of component Home: Failure
invoking listener method 'public java.lang.String' on $Home_0(at)1d35bf2[Home]: Hibernate operation:
Cannot open connection; uncategorized SQLException for SQL [???]; SQL state
[null]; error code [0]; Cannot create PoolableConnectionFactory (The
connection attempt failed.); nested exception is
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (The connection attempt failed.)

The ''java.lang.String'' is a simple method
which queries database for a user name and a password.

Any hints much appreciated! Thanks!
View this message in context:
Sent from the PostgreSQL - jdbc mailing list archive at


pgsql-jdbc by date

Next:From: Rich RutkowskiDate: 2007-01-10 04:46:35
Subject: Connection Problem
Previous:From: Dave CramerDate: 2007-01-09 13:56:32
Subject: Re: JDBC driver compilation issues

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