Hibernate异常:无法实例化C3P0连接池

发布于 2024-11-02 04:18:49 字数 671 浏览 5 评论 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 和 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

So要识趣 2024-11-09 04:18:49

这是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/).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文