NullPointerException at org.enhydra.jdbc.pool.GenericPool.getFromPool

While many concurrent connections connect to database, my web application sometime will hit NullPointerException error from GenericPool.getFromPool method. This is weird, after i googling a while, i find out this is a bug in XAPool 1.5.jar, it already fix in XAPool 1.6 beta released (Fix for #303462). After i upgraded to XAPool1.6 beta, error message is gone.

Error detail
http://forge.objectweb.org/tracker/index.php?func=detail&aid=303673&group_id=59&atid=300059

Here to download latest XAPool
http://xapool.experlog.com/


java.lang.NullPointerException
	at org.enhydra.jdbc.pool.GenericPool.getFromPool(GenericPool.java:200)
	at org.enhydra.jdbc.pool.GenericPool.checkOut(GenericPool.java:351)
	at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:194)
	at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:164)
	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:112)
	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
	at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:513)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:581)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:610)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:618)
	at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:650)

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
0 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
newest oldest most voted