当前位置: 代码迷 >> J2EE >> org.springframework.jdbc.CannotGetJdbcConnectionException: Could
  详细解决方案

org.springframework.jdbc.CannotGetJdbcConnectionException: Could

热度:729   发布时间:2016-04-22 03:42:20.0
SPRING2.0+ow2-jotm-dist-2.2.1 经常找不获取不到数据源连接但是刷新一下就好了
报错信息:


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:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)


org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: SQLException in StandardPoolDataSource:getConnection exception: java.sql.SQLException: SQLException in StandardPoolDataSource:getConnection no connection available java.lang.NullPointerException
Caused by: java.sql.SQLException: SQLException in StandardPoolDataSource:getConnection exception: java.sql.SQLException: SQLException in StandardPoolDataSource:getConnection no connection available java.lang.NullPointerException
at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:213)


但是刷新一下就好了。请问是不是版本的问题啊


------解决方案--------------------
帮你顶起,我也遇到这问题了!你解决了吗?
------解决方案--------------------
我急需解决这个问题!如果你解决了情给我发个邮件可以吗?zb123159@163.com十分感谢!
  相关解决方案