开发者

Hibernate Exception:Could not instantiate C3P0 connection pool

开发者 https://www.devze.com 2023-02-25 08:02 出处:网络
now i meet a prolem about c3p0 when using hibernate to query. the exception is: Caused by: java.lang.RuntimeException: [c3p0 bug] Only brand new IdentityTokenized\'s, with their identities just set,

now i meet a prolem about c3p0 when using hibernate to query.

the exception is:

Caused by: java.lang.RuntimeException: [c3p0 bug] Only brand new IdentityTokenized's, with their identities just set, should be registered!!!
    at com.mchange.v2.c3p0.C3P0Registry.register(C3P0Registry.java:103)
    at com.mchange.v2.c3p0.DriverManagerDataSource.<init>(DriverManagerDataSource.java:74)
    at com.mchange.v2.c3p0.DataSources.unpooledDataSource(DataSources.java:128)
    at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProv开发者_如何学编程ider.java:96)
    ... 22 more

i cant find any useful info from google,does any buddy know the reason? Thanks!

BTW: my env is c3p0 0.9.0 and hibernate 3.3


It is C3P0 bug. I'd recommend to upgrade C3P0 to the latest version (currently 0.9.1.2, http://sourceforge.net/projects/c3p0/files/c3p0-bin/).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号