From: zqzuk <ziqi.zhang@hotmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Cannot create PoolableConnectionFactory
Date: Tue, 9 Jan 2007 13:30:45 -0800 (PST)
Message-ID: <8246974.post@talk.nabble.com> (raw)
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
tuition.page.Home.onLogin()' on $Home_0@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 tuition.page.Home.onLogin()'' is a simple method
which queries database for a user name and a password.
Any hints much appreciated! Thanks!
--
View this message in context: http://www.nabble.com/Cannot-create-PoolableConnectionFactory-tf2948992.html#a8246974
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: ziqi.zhang@hotmail.com
Subject: Re: Cannot create PoolableConnectionFactory
In-Reply-To: <8246974.post@talk.nabble.com>
References: <8246974.post@talk.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox