You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by ar...@cornell.edu on 2002/03/06 18:56:06 UTC
Re: FW: JdbcConnectionPool
I am having the same problem described here:
http://marc.theaimsgroup.com/?l=avalon-dev&m=101423720431127&w=2
my code:
pool = new JdbcConnectionPool(new JdbcConnectionFactory(url, user,
password, autoCommit, keepAlive, JdbcConnection.class.getName()),
new DefaultPoolController(), minconns, maxconns, autoCommit);
pool.initialize();
Upon the first call to get():
java.lang.NullPointerException
6/3/2002 12:17:44:78 [E] at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcConnectionPool.java:210)
6/3/2002 12:17:44:78 [E] at java.lang.Thread.run(Thread.java:484)
AND
java.lang.IllegalStateException: You cannot get a Poolable before the
pool is initialized
at org.apache.avalon.excalibur.pool.DefaultPool.get(DefaultPool.java:109)
at
org.apache.avalon.excalibur.datasource.JdbcConnectionPool.get(JdbcConnectionPool.java:136)
at
edu.cornell.cit.infutil.ExcaliburConnectionPool.getConnection(ExcaliburConnectionPool.java:40)
...
Any feedback on this would be appreciated,
Aaron
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>