现在我在使用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