0

现在我在使用hibernate查询时遇到了一个关于c3p0的问题。

例外是:

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(C3P0ConnectionProvider.java:96)
    ... 22 more

我在google上找不到任何有用的信息,有没有朋友知道原因?谢谢!

顺便说一句:我的环境是 c3p0 0.9.0 和休眠 3.3

4

1 回答 1

2

这是 C3P0 错误。我建议将 C3P0 升级到最新版本(当前为 0.9.1.2,http://sourceforge.net/projects/c3p0/files/c3p0-bin/)。

于 2011-04-18T08:21:32.097 回答