commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tomsic <ptom...@yahoo.com>
Subject dbcp - nullpointer creating pooling driver?
Date Wed, 11 Dec 2002 23:19:32 GMT
I'm getting a nullpointer when trying to do the
following:

			GenericObjectPool connectionPool = new
GenericObjectPool(null);
			DriverManagerConnectionFactory connectionFactory =
new
DriverManagerConnectionFactory("jdbc:mysql://10.117.7.18:3306/dow?autoReconnect=true",
"webusername", "password");
			
			PoolableConnectionFactory poolableConnectionFactory
= new PoolableConnectionFactory(connectionFactory,
connectionPool, null, null, false, true);
			
			PoolingDriver driver = new PoolingDriver();
			
			driver.registerPool("dow", connectionPool);
			// the next line is throwing a nullpointer....
			conn =
DriverManager.getConnection("jdbc:apache:commons:dbcp:dow");




can anyone help or at least point me in the right
direction?
I'm using MySQL as my Db, and the username/password
combo works when I try to access the dB from outside
the source code.

Thanks in advance,
Paul


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Mime
View raw message