Hibernate异常:无法实例化C3P0连接池
现在我在使用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 和 hibernate 3.3
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(C3P0ConnectionProvider.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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是C3P0错误。我建议将 C3P0 升级到最新版本(当前为 0.9.1.2,http:// /sourceforge.net/projects/c3p0/files/c3p0-bin/)。
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/).